Hi Perl Monks,
I am very new to perl programming.So kindly pardon me if I am asking stupid question.
Well, I am learning perl and was trying to convert some my simple shell script to perl.
So, i was thinking to write a script that can check the disk space of the server and grep for any thing that is more then 90% and then it will send an email to me
I realised that my doing the below, I could actually print out the disk space.
disk = `df -k `;
print ( $disk );
so can anyone kindly guide me:
1. how can I ouput it to a file
2.grep the file for anything more then 90%
3.send an email to myself.