![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| /var/adm/messages | finster | SUN Solaris | 6 | 02-09-2009 08:58 AM |
| error messages in /var/adm/messages | nitinp82 | UNIX for Advanced & Expert Users | 1 | 04-17-2007 10:17 AM |
| /var/adm/messages | FrankC | UNIX for Dummies Questions & Answers | 3 | 09-18-2006 11:25 AM |
| /var/adm/messages | soliberus | SUN Solaris | 2 | 06-29-2005 10:18 AM |
| /var/adm/messages- Help | finster | SUN Solaris | 1 | 12-11-2003 09:03 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
messages
I need to create a message for both if statements and for the else.
Code:
!/bin/sh
blocks=0
blocks=`df -k /opt/mysql | awk '{if(length($5)<4)
{print substr($5,1,2)}}'`
echo "The database capacity is at" $blocks"%"
echo "Blocks size is "$blocks
if [ $blocks -gt 15 ]
then
*This is where I need the message*
elif [ $blocks -gt 10 ]
then
*This is where I need the message*
else
*This is where I need the message*
fi
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|