![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Please help - disk space check script | maddhadder71 | Shell Programming and Scripting | 0 | 05-08-2008 09:16 AM |
| Disk space script | asadlone | Shell Programming and Scripting | 8 | 06-03-2007 04:32 PM |
| Frustrating Disk space script | vivsiv | Shell Programming and Scripting | 4 | 06-05-2006 08:53 PM |
| disk space script debug - posted before | bryan | Shell Programming and Scripting | 3 | 04-28-2005 08:50 PM |
| available disk space on disk device??? | alan | UNIX for Dummies Questions & Answers | 4 | 01-02-2004 03:06 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Disk Space Monitoring Script
#!/bin/bash
# Disk Space Monitoring for more than 95 % # and Sending Alerts by Mail if [ df -k |awk '$5 > 95 ]; then `df -k |awk '$5 > 95 {print $1 " ----------- " $5}' |mailx -s "More than 95% disk usage in DEV" email@test.com'; else exit 0 fi I get the below error: ================ bash-3.00$ ./disk_usage_mail_alert-sriram.sh ./disk_usage_mail_alert-sriram.sh: line 14: syntax error near unexpected token `else' ./disk_usage_mail_alert-sriram.sh: line 14: `else ' |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|