http://tldp.org/LDP/abs/html/testconstructs.html ________________________________ From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Shivaswamy Raghunath Sent: Wednesday, April 18, 2007 2:49 PM To: Oracle-L Freelists Subject: Slightly Off Topic - value of variable in unix mail 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 This electronic message transmission is a PRIVATE communication which contains information which may be confidential or privileged. The information is intended to be for the use of the individual or entity named above. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. Please notify the sender of the delivery error by replying to this message, or notify us by telephone (877-633-2436, ext. 0), and then delete it from your system.