On Fri, Oct 21, 2011 at 10:18 PM, newbie01 perl <newbie01.p...@gmail.com> 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 <bamcc...@gmail.com> <bamcc...@castopulence.org> 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: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/