in reply to Check if home dir is mounted?

In order to see what volumes are mounted on a particular machine, you have to login into it. I'd just log in and chdir to $HOME (or ~$user, if not logging in as that particular user), failing that, log out, mark that machine as bad for this particular user and grab the next one in the list.

Easiest would be a statement in the system's SHELL rc (.profile, .bashrc, whatever) like

cd $HOME || exit
so users who don't get their home on that machine get logged out immediately.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^2: Check if home dir is mounted?
by Anonymous Monk on Apr 11, 2007 at 14:16 UTC
    Hi,

    Thanks for the replies. Previously, the last line of my code was this:-

    $Launch = system ("rsh $BestHost");

    ...where $BestHost was derived earlier. Now, however, I am just going to do this:-

    $Launch = system ("rsh $BestHost \"cd ~$user\"");

    ...and if I detect a "not found", I will move to the next best machine name.

    Thanks for all the replies!

    Kind Regards,

    Kehliah