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