Hi folks,
I must admit I'm not much of a scripter so this is quite a basic question:
I'm trying to write as script that sends out an e-mail as soon as a certain variable "fw" becomes smaller than 2
I tried out something like that:
...
if [ $fw < 2 ]
then ...
and also
if [ "$fw" < "2" ]
then
but the system always tries to create a file called "$fw" and to write 2 into it ... What's wrong here ?
How do I correct the problem ?
Thanks in advance !
Regards,
Thomas
I must admit I'm not much of a scripter so this is quite a basic question:
I'm trying to write as script that sends out an e-mail as soon as a certain variable "fw" becomes smaller than 2
I tried out something like that:
...
if [ $fw < 2 ]
then ...
and also
if [ "$fw" < "2" ]
then
but the system always tries to create a file called "$fw" and to write 2 into it ... What's wrong here ?
How do I correct the problem ?
Thanks in advance !
Regards,
Thomas