Shiva, First of all: before you read my answer, read Jareds post of yesterday: //www.freelists.org/archives/oracle-l/04-2007/msg00662.html The rest of the answer is a couple of newlines below. Please read the link above first. Then, I'm in a good mood today. So I decided to help you a little and keyed in these words in Googles search engine: bash condition greater Guess what the second hit was: http://linuxhelp.blogspot.com/2005/10/10-seconds-guide-to-bash-shell.html Maybe you're able to exploit this easy problem solving tactic next time. Best regards, Carel-Jan Engel === If you think education is expensive, try ignorance. (Derek Bok) === On Wed, 2007-04-18 at 16:48 -0400, Shivaswamy Raghunath wrote: > Hello. > > I am trying to enhance a shell script in bash shell on HP UX. I need > your help, please. I need the script to mail me if the value of a > variable is more than certain number. How can I do this? $free is the > variable > > If $free > 500 > mailx -s "Value of free is :" the _value_of_free > shivaswamykr@xxxxxxx > fi > > is what I want to do . > > Can you tell me how I can do this. > > Thanks for your help, > Shiva >