Ah, I see....

It is an issue with rh6 supplying a line return after the volume info....

Darn thing.....

Well, adjust as needed I guess.....

I had to b/c the output looks like this on rh6.....

$ df -k /tmp
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol01
 847375100 5953628 798377224 1% /

Not sure why, but if your output is like this one, then the awk params will 
need fixin'.....

Thanks,

Ed


-----Original Message-----
From: Reuti [mailto:[email protected]]
Sent: Tuesday, June 4, 2013 12:50 PM
To: 'Ed Lauzier'
Cc: [email protected]
Subject: Re: [gridengine users] tmpspace load sensor typos on howto page

Hi,Am 04.06.2013 um 18:31 schrieb Ed Lauzier:> This is for the web page 
maintainer....> > Minor but important typos in the tmpspace load sensor howto 
page:> ( at least for linux....)> > 
http://arc.liv.ac.uk/SGE/howto/loadsensor.html> > tmpspace.sh:> > - no closing 
"fi" for "if"> > if [ "$SGE_ROOT" != "" ]; then> root_dir=$SGE_ROOTTrue, it's 
missing there. Maybe Dave can fix it.> - wrong params in awk statement> > 
dfoutput="`df -k $FS | tail -1`"> tmpfree=`echo $dfoutput | awk '{ print $4}'`> 
tmptot=`echo $dfoutput | awk '{ print $2}'`> tmpused=`echo $dfoutput | awk '{ 
print $3}'`> > > should be:> > dfoutput="`df -k $FS | tail -1`"> tmpfree=`echo 
$dfoutput | awk '{ print $3}'`> tmptot=`echo $dfoutput | awk '{ print $1}'`> 
tmpused=`echo $dfoutput | awk '{ print $2}'`Which `df` are you using? Column 
one is the name of the file system in question. Is it supressed in your 
output?-- Reuti> > Hope this helps....> > thanks,> > Ed Lauzier> > > 
_______________________________________________> users mailing list> 
[email protected]> https://gridengine.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to