Thank you!@ you write i want to assign sky1 to variable1 if servername = abcd1 or abcd2 only. If it is any other server i want to assign sky2 to variable1
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...
Can you tell me how can i asign the returned value to a variable?
something like this but i don't know the exact sintax
servername = "uname -n" maybe?
servername = "$(uname -n)" maybe?
then i want to display the servername
echo "servername" = servername maybe like this ?
sorry i don't...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.