![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Check if home dir is mounted?by Anonymous Monk |
on Apr 10, 2007 at 23:22 UTC ( #609267=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi, All,
I have written a perl script that reads in a list of workstation names and checks the system load of each. After probing each system (Linux workstations), it auto-derives the one with the lightest load and completes by automatically logging the user into that system.
It works great 90% of the time, but sometimes a user gets automatically logged into a system that doesn't have his or her home directory mounted. How can I perform a simple check to make sure a user's home directory is mounted to a specific system?
Assume the worst: I only know the user's login name and the workstation to probe (i.e. I don't even know which NFS volume possesses the user's home...)
Thanks!
Back to
Seekers of Perl Wisdom
|
|