Hi,
I am new at this and I would like to get this type of sintax on my Korn script
SERVERNE = `uname -n` this is good this workrs
Then I like to do an if statement to compare the servrname to a name and depending on the I would like to give a value to a variable if it is not that server then set someting else to a variable. Something like this
IF servername = abcd1 or abcd2 then
variable1 = Skyb1
else
variable1 = Sky2
FI
please help to correct
thanks!
I am new at this and I would like to get this type of sintax on my Korn script
SERVERNE = `uname -n` this is good this workrs
Then I like to do an if statement to compare the servrname to a name and depending on the I would like to give a value to a variable if it is not that server then set someting else to a variable. Something like this
IF servername = abcd1 or abcd2 then
variable1 = Skyb1
else
variable1 = Sky2
FI
please help to correct
thanks!