Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: Dynamically determinig fstab file name

by rgren925 (Beadle)
on Nov 23, 2022 at 20:02 UTC ( #11148341=note: print w/replies, xml ) Need Help??


in reply to Re^3: Dynamically determinig fstab file name
in thread Dynamically determinig fstab file name

Sorry. Took a bit of a leap there. I made the (bad) assumption that your output was demonstration but that, perhaps, cygwin didn't output the fstab file name. The fstab value is what I am looking for. I can get all the data from I want from Sys::Filesystem--as long as I have read access to fstab. That's the sticking point. I want the name of the fstab file on that particular system. This code is running on 100k+ systems across several platforms, so I am loathe to make any assumptions.
  • Comment on Re^4: Dynamically determinig fstab file name

Replies are listed 'Best First'.
Re^5: Dynamically determinig fstab file name
by kcott (Archbishop) on Nov 23, 2022 at 23:03 UTC

    I made an alternative suggestion involving sanity checks: is O/S supported (Sys::Filesystem::->supported()) and, if so, does it find any filesystems ($fs->filesystems()).

    If that's insufficient for your needs, and you absolutely must have the fstab path, I'm unable to advise you further.

    — Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11148341]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2023-10-04 00:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?