Re: df hang inside script

2002-07-04 Thread David vd Geer Inhuur tbv IPlib
Hi Deb, Did you ever think of : open(FH, "< /etc/mnttab"); The only thing a df (or bdf) does is catinating the /etc/mnttab and checking if the "link" is still there. This way a hang of a stale nfs-mount won't bother you, but you will be able to filter it out in the mnttab as it cleary sets an

Re: df hang inside script

2002-07-03 Thread drieux
On Wednesday, July 3, 2002, at 06:18 , Deb wrote: [..] > I can't just check for certain filesystems, I have to "know" what is > mounted at a given time... But the fact that there is NFS server/ > client game where they no longer make nice - well, I need to discover > that before issuing the df c

Re: df hang inside script

2002-07-03 Thread Deb
* Anders Holm <[EMAIL PROTECTED]> [2002-07-02 10:31:29 +0100]: > Why not see if the NFS has bombed out before trying to use it? Maybe just > trying to do an ls or something which wouldn't need to hang your process, > but rather give you a failure notice? (Sorry for the long time in getting back

Re: df hang inside script

2002-07-02 Thread drieux
On Monday, July 1, 2002, at 02:08 , Deb wrote: [..] > I'm not sure what approach to take to alleviate the cascading failure. > I'd prefer to just abort the df, log the error, and complete the rest > of the script. Short of totally re-writing the script (it's not mine, > to begin with), I would l

RE: df hang inside script

2002-07-02 Thread Anders Holm
> Hey Folks, Hi. > Recently I had a problem where a *nix system NFS was hung on a server > which had "gone away," but the client hadn't umounted the filesystem. Yep, normal so far > Later, this caused a script in cron to fail, in that a df command inside > the script never completed, and i

df hang inside script

2002-07-01 Thread Deb
Hey Folks, Recently I had a problem where a *nix system NFS was hung on a server which had "gone away," but the client hadn't umounted the filesystem. Later, this caused a script in cron to fail, in that a df command inside the script never completed, and instead it "hung," causing the script to