The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-11-2006
dshea0001 dshea0001 is offline
Registered User
  
 

Join Date: May 2006
Posts: 8
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
How is this done?
  #2 (permalink)  
Old 05-11-2006
Ambikesh Ambikesh is offline
Registered User
  
 

Join Date: Feb 2006
Location: California
Posts: 45
What do you want..
Do you really have a problem????
  #3 (permalink)  
Old 05-12-2006
dshea0001 dshea0001 is offline
Registered User
  
 

Join Date: May 2006
Posts: 8
I dont want to use echo as a message to print out. What i really want is to use something like dmesg.
  #4 (permalink)  
Old 05-12-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
man logger
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0