df script not working
Hi guys, I have a script that checks disk usage and emails if it is low but it keeps returning this error:
Use of uninitialized value in concatenation (.) or string at ./df.pl line 17. tail: cannot open `+2' for reading: No such file or directory Use of uninitialized value in addition (+) at ./df.pl line 20. Use of uninitialized value in addition (+) at ./df.pl line 20. Use of uninitialized value in division (/) at ./df.pl line 20. Illegal division by zero at ./df.pl line 20. Here's the script: Code:
#!/usr/bin/perl Any ideas? |
Well, we can start with this for one thing:
"tail: cannot open `+2' for reading: No such file or directory" Code:
man tail |
Works now!
Works now!
Thanks |
All times are GMT -5. The time now is 08:17 AM. |