csa
[Top] [All Lists]

Re: csachkpacct

To: schummer@xxxxxxxxxxxxxx
Subject: Re: csachkpacct
From: kohnke@xxxxxxx (Marlys Kohnke)
Date: Wed, 21 Feb 2001 09:54:50 -0600
Cc: csa@xxxxxxxxxxx
In-reply-to: Your message of "Wed, 21 Feb 2001 16:04:48 +0100." <XFMail.20010221160448.schummer@xxxxxxxxxxxxxx>
Sender: owner-csa@xxxxxxxxxxx
     Thanks for reporting this.  It was discovered by me also and
fixed in the latest packages which will be available from
oss.sgi.com/projects/csa by the end of this week.  

     I made the following change so that the length of any
column value doesn't cause the output line to be broken into two
separate lines:

_blocks=`df -kP ${_ACCT_FS} | awk '/Avail/ {next} /.*/ {print $4}'`


     For example, on one of our lab test machines, df -k gives the
following output:

Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/ide/host0/bus0/target0/lun0/part1
                       6000880   4473680   1222372  79% /


     But, df -kP keeps the output all on one line so that awk will
work as expected:

Filesystem         1024-blocks      Used Available Capacity Mounted on
/dev/ide/host0/bus0/target0/lun0/part1   6000880   4473680   1222372     

---
Marlys Kohnke                 Silicon Graphics Inc.
kohnke@xxxxxxx                655F Lone Oak Drive
(651)683-5324                 Eagan, MN 55121

<Prev in Thread] Current Thread [Next in Thread>
  • csachkpacct, Hans J. Schummer
    • Re: csachkpacct, Marlys Kohnke <=