Your skill will accomplish what the force of many cannot |
|
PerlMonks |
df sometimes hangs in Win32 OSby Dandello (Monk) |
on Sep 22, 2012 at 16:28 UTC ( [id://995108]=perlquestion: print w/replies, xml ) | Need Help?? |
Dandello has asked for the wisdom of the Perl Monks concerning the following question: Yeah, the title is cryptic. The problem (we think) is in here
It works fine to check the available disk space on *nix servers. But occasionally - just occasionally - it brings up command windows when executed on servers (Apache or IIS) running XP or Win 2003 and stops the script the code is in from working properly. I read that there are better ways of writing qx{df -k .}; and having a Win32 compatible method of checking disk space would be nice. The current work around is simply to not run this section of code when the OS is MSWin32. But there has to be a better way. (I didn't write this code, I'm just in the process of debugging it.)
Back to
Seekers of Perl Wisdom
|
|