On Mon, 4 Feb 2008, Dustin Puryear wrote:

> I would be willing to wager that 99% of those scripts use 'df' in the
> way that I and others that have responded to this thread so far use it:
>
> $ df | awk ...

True, but what columns is your awk going after?  The problem is that 'df' 
output isn't standard.  You get different output on AIX than Linux and 
*BSD, not sure about Solaris or HPUX.  So that's what POSIX is for. :)

Yes i've been bitten by this before... my solution was to add -P to all 
the broken scripts haha.  I do agree that the multi-line df output caused 
by the default RedHat LVM is quite aggravating.

I've run into similar problems with vmstat/iostat output being different 
between Linux kernels and other Unices.  Unfortunately i haven't found a 
-P flag for vmstat.

ray
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Ray DeJean                                       http://www.r-a-y.org
Systems Engineer                    Southeastern Louisiana University
IBM Certified Specialist              AIX Administration, AIX Support
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


_______________________________________________
General mailing list
[email protected]
http://mail.brlug.net/mailman/listinfo/general_brlug.net

Reply via email to