I have a script that runs on linux, solaris, hp-ux and aix.
It uses Sys::Filesystem to get fs info. Occasionally the account this script runs under does not have read permission to the fstab file. Depending on platform, this file has different names (/etc/fstab, /etc/vfstab, etc.).
I would like a way to dynamically determine what fstab file Sys::Filesystem is using and check upfront for readability. The doc for Sys::Filesystem says the default at runtime is $Sys::Filesystem::FSTAB but that (variable?) has no value when I try to print it.
Any ideas?
Thanks, Rick
In reply to Dynamically determinig fstab file name by rgren925
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |