Im trying to write a script that will email me when drive space on any given partition is above a certain value.
i was trying this ...but no working ... #!/bin/sh # this is a script to check drive space and email HSD dept. # cd ~bbailey rm ~bbailey/drvspc.txt df -k | awk '{print$5}' >~bbailey/drvspc.txt cat drvspc.txt while read i do if [$i > '89']; then mail -s "check drive space on core" [EMAIL PROTECTED] fi echo "done" ME not being that great at shell scripting yet ...i was wondering what im doing wrong here ?? any and all help is greatly appreciated thanx -- Brent Bailey CCNA Bmyster LLC Computer Networking and Webhosting Network Engineer, Webmaster, President http://www.bmyster.com [EMAIL PROTECTED] 207-247-8330 _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"