Re: Easiest Way in Perl to check Whether a Disk is Mounted

2024-06-01 Thread Jeff P via beginners
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. How about this module from metacpan? https://metacpan.org/pod/Sys::Linux::Mount regards. -- To unsubscribe, e-m

Easiest Way in Perl to check Whether a Disk is Mounted

2024-06-01 Thread Martin McCormick
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 i