lftp remote server du -sh + mail script

view story

http://www.linuxquestions.org – So im trying to accomplish the following: I have a backup space of 100gb on a remote server and want to setup a cron job with a shell script to check the usage of a backup space and if it goes close to 100gb (lets say 95gb) send a notify email. Im trying to combine lftp script and email disk usage script a recently found. lftp script: Code: lftp -u user,password IP <<EOF du -sh quit 0 disk usage script: Code: df -k | awk 'int($5) > 95{   subject = $1 " on address : More than 95% disk usage "   email = "email"   cmd = "/bin/df -h|mail -s (HowTos)