Pipe abuse!! MOUNTPATH=`gawk '/\/dev\/cdrom/{print $2}' /etc/fstab` -----Original Message----- From: tclug-list-admin at mn-linux.org [mailto:tclug-list-admin at mn-linux.org]On Behalf Of Adam Maloney Sent: Thursday, July 31, 2003 2:40 PM To: 'tclug-list at mn-linux.org' Subject: Re: [TCLUG] Newbie question-Getting Mount Information for an Install Script Assuming it's mounted, and in fstab, and the actual device is /dev/cdrom: MOUNTPATH=`cat /etc/fstab | grep "/dev/cdrom" | awk '{ print $2 }'` On Thu, 31 Jul 2003, Rusty Crabbs wrote: > Hello all, > > I am new the wonderful world of Linux, but I am constantly impressed by how > awesome it is. > > I am trying to write an install script to copy files from a CD. > Unforntuately, I don't know how to get mount path from OS without prompting > the user to enter it. Is there a way to put the current mount path for the > CD-Rom into a variable without asking for human intervention? > > Any assistance would be appreciated! > > > Thanks, > > Rusty > > _______________________________________________ TCLUG Mailing List - Minneapolis/St. Paul, Minnesota http://www.mn-linux.org tclug-list at mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-list _______________________________________________ TCLUG Mailing List - Minneapolis/St. Paul, Minnesota http://www.mn-linux.org tclug-list at mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-list