Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Slightly Off Topic - value of variable in unix mail
$ free=45
$ if test $free -ge 45
> then
> echo greater
> else
> echo not greater
> fi
greater
hth
GovindanK
On Wed, 18 Apr 2007 16:48:52 -0400, "Shivaswamy Raghunath" <shivaswamykr_at_gmail.com> said:
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 [1]shivaswamykr_at_abc.com
fi
is what I want to do .
Can you tell me how I can do this.
Thanks for your help,
Shiva
References
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Apr 18 2007 - 19:34:29 CDT
![]() |
![]() |