|
|
Question : how to ssh in a korn shell script
|
|
How do I ssh in a ksh script? After doing ssh in the same code I need to do sudo su. All these commands need the password to be entered. Is there some way in the script that I could handle this. Please advise.
|
Answer : how to ssh in a korn shell script
|
|
You need to either do
/home/wasuser/sshlogin.exp 'all$user' 10.124.100.100 who
or
/home/wasuser/sshlogin.exp all\$user 10.124.100.100 who
To prevent $user from being expanded.
|
|
|
|