missing automount magicby osunderdog (Deacon)
|on Nov 01, 2005 at 17:19 UTC ( #504660=perlquestion: print w/replies, xml )||Need Help??|
osunderdog has asked for the wisdom of the Perl Monks concerning the following question:
I'm having a problems 'seeing' data located on an automount directory. I have tried opendir/closedir as well as glob. Both methods report that the directory is empty, however the os command find will report the data expected.
Of course the short term fix is to use find, however I've found that the options for it very between operating sytems.
Others have suggested that I try to open a file on the target operating system before using opendir/closedir or glob however I haven't had any luck getting that to work.
Here is my sample code, which will run on Linux. The three alternative implementations are located in functions getDirs1, getDirs2 and getDirs3
NOTE: you will need to select a directory that is automounted ($mountpoint) and a regex for a file ($probepoint) that is located on that mountpoint.
Of course, if you run this on a directory that isn't automounted, all three tests should succeed.
If anyone has any suggestions on how to get this to work, please let me know!
Hazah! I'm Employed!
Back to Seekers of Perl Wisdom