Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!rice!sun-spots-request From: richard%aiai.edinburgh.ac.uk@nsfnet-relay.ac.uk (Richard Tobin) Newsgroups: comp.sys.sun Subject: Re: mounted machine down => df hangs Keywords: Source Message-ID: <2933@brazos.Rice.edu> Date: 8 Nov 89 18:23:03 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 20 Approved: Sun-Spots@rice.edu X-Refs: Original: v8n180, Replies: v8n188 X-Sun-Spots-Digest: Volume 8, Issue 193, message 5 of 15 Here's a replacement for df that shouldn't hang if the remote file server is down (I have seen it hang when the remote machine was in some bizarre semi-down state). It's almost completely df compatible - the only difference I know is that when a file system is more than 100% full it prints out a negative number of available k rather than zero. -- Richard Richard Tobin, JANET: R.Tobin@uk.ac.ed AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin Ed's Note: FTP HostName : titan.rice.edu (128.42.1.30) Directory: sun-source FileName : repdf.c Archive-Server Address: archive-server@rice.edu Archive-Server Command: get sun-source repdf.c