IF commands
From: Andrea Arquint (aarquint_at_hsw.fhz.ch)
Date: 06/25/04
- Next message: Michael Henke: "ucdata error while starting OpenLDAP on RH9 (build from source)"
- Previous message: Urban Cowboy: "Poor HP Proliant RAID performance"
- Next in thread: Stephane CHAZELAS: "Re: IF commands"
- Reply: Stephane CHAZELAS: "Re: IF commands"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 25 Jun 2004 11:48:29 +0200
Hi
Id made a shell script like:
#!/bin/sh
MY_VAR=5
if [ $MY_VAR >= 3 ]; then
cp /root/test.txt /tmp
fi
exit 0
#### End of shell script
This script example does not work??? Why
I don't know why but if I substitute the operator '>=' with '!=' than
the script works.
I don't know why that is... Must be a syntax error from the bash...
Thanks for help
Andrea
- Next message: Michael Henke: "ucdata error while starting OpenLDAP on RH9 (build from source)"
- Previous message: Urban Cowboy: "Poor HP Proliant RAID performance"
- Next in thread: Stephane CHAZELAS: "Re: IF commands"
- Reply: Stephane CHAZELAS: "Re: IF commands"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|