In unix-like OS's, there are the mount and mountpoint commands that can help one determine whether a file system is mounted such as $ mount |grep horseradish. If there is a file system defined in fstab which might look like
UUID="B159-BB80" /horseradish vfat rw,user,noauto 0 0 and it is not presently mounted, the mount command should not have any output containing the name horseradish. If the device with the correct UUID is mounted, the command of mount which shows all mounted file systems will contain the horseradish line and also where it is mounted and so forth but the big difference is that you get a string if /horseradish is mounted and zilch if it is not. There is also a unix command of mountpoint which will say that horseradish, in this case, is not a mount point if it is not mounted or that it is a mountpoint if it has a FS mounted on it. The perl script I am working on should check to see if a device is mounted with the requested name and do one thing if it is and something else if it is not. Of course, I can use system calls and call the unix mount or mountpoint applications but is there a proper perl way to do this since system calls are not as elegant? Thank you. Martin McCormick -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/