On Fri, Oct 21, 2011 at 10:18 PM, newbie01 perl <[email protected]> wrote:
> At the moment am using
>
> system("df -k > /tmp/df_tmp.00");
>
> To re-direct the df output. Am using df -k because some of the Solaris and
> HP servers does not have df -h, by using df -k, am sure it will work on all
> of them.

Apparently there is a Filesys::DiskFree package on CPAN that
tries to make it more portable. You should probably give that a
try instead of parsing the output from a separate process
yourself.

http://search.cpan.org/~abarclay/Filesys-DiskFree-0.06/DiskFree.pm


-- 
Brandon McCaig <[email protected]> <[email protected]>
Castopulence Software <https://www.castopulence.org/>
Blog <http://www.bamccaig.com/>
perl -E '$_=q{V zrna gur orfg jvgu jung V fnl. }.
q{Vg qbrfa'\''g nyjnlf fbhaq gung jnl.};
tr/A-Ma-mN-Zn-z/N-Zn-zA-Ma-m/;say'

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to