in reply to Partition monitor, aka, I told you it was ugly

There's no need to open $outfile for appending as you do, because you're doing the actual append in `df -k /usr >> $outfile`.

But instead of writing to $outfile, why not just build up the message in memory, and then open a pipe to sendmail? (Or, better yet, use a module to send the mail.)

  • Comment on Re: Partition monitor, aka, I told you it was ugly