From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: ldg@ulysium.net Newsgroups: gmane.os.tru64.managers Subject: summary: quick shell scripting question Date: Sun, 21 Dec 2003 14:07:40 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1072033833 6671 80.91.224.253 (21 Dec 2003 19:10:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Dec 2003 19:10:33 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Sun Dec 21 20:10:30 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AY8yD-0000kw-00 for ; Sun, 21 Dec 2003 20:10:29 +0100 Original-Received: (qmail 4260 invoked by uid 5); 21 Dec 2003 19:10:08 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 4245 invoked by uid 49493); 21 Dec 2003 19:10:08 -0000 Original-Received: from ldg@ulysium.net by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-4.4/5.0):. Processed in 1.533377 secs); 21 Dec 2003 19:10:08 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 21 Dec 2003 19:10:06 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HQ900I1IEKTLW@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sun, 21 Dec 2003 14:10:05 -0500 (EST) Original-Received: from outbound28-2.lax.untd.com (outbound28-2.lax.untd.com [64.136.28.160]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with SMTP id <0HQ900F6REJY1J@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sun, 21 Dec 2003 14:09:35 -0500 (EST) Original-Received: from outbound28-2.lax.untd.com (smtp01.lax.untd.com [10.130.24.121]) by smtpout01.lax.untd.com with SMTP id AAA98M565ANUE8WS for (sender ); Sun, 21 Dec 2003 11:08:11 -0800 (PST) Original-Received: (qmail 4131 invoked from network); Sun, 21 Dec 2003 19:07:44 +0000 Original-Received: from dialup-4.72.73.195.dial1.orlando1.level3.net (HELO ?4.72.73.195?) (4.72.73.195) by smtp01.lax.untd.com with SMTP; Sun, 21 Dec 2003 19:07:44 +0000 In-reply-to: Original-To: Tru64 Unix managers User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6 X-ContentStamp: 6:3:3702506610 Xref: main.gmane.org gmane.os.tru64.managers:6063 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6063 My original question was: > I'd like to find out if it's possible from a shell script to read > information from an advfs domain, so I could find out how full it is, to > detect before hand if it's about to get 100% full. > Is that possible? > If so, how? I haven't yet written a shell script to do this, but from the several suggestions I received, it looks like there isn't a quick a simple way to do this. The solution will only be to parse the response from the commands showfdmn or df with awk and single out the part I need. However I wouldn't bother using df because I haven't seen it to be very acurate and is most of the time wrong in reporting a file system's used space, it never agrees with du and not even with showfdmn. So I will try using showfdmn. -- Didier Godefroy mailto:dg@ulysium.net