Qertyans Posted October 10 Posted October 10 I want to create script to putty auto login and its work. RunWait('"C:\Program Files\PuTTY\putty.exe" -ssh SERVER -l root -pw PASSWORD') but I want to declare like SERVER , username(root or something) , and password. but somehow its not works. Local $SERVER = "SERVER" Local $USER = "root" Local $PASPROT = "PASSWORD" RunWait('"C:\Program Files\PuTTY\putty.exe" & " -ssh " & $SERVER & " -l" & $USER & " -pw " & $PASPROT') kindly need help
Solution BigDaddyO Posted October 10 Solution Posted October 10 Remove the ' at the end and begining of your RunWait and it should work
Qertyans Posted October 10 Author Posted October 10 @BigDaddyO thanks for helping, its work. Local $SERVER = "SERVER" Local $USER = "root" Local $PASPROT = "PASSWORD" RunWait("C:\Program Files\PuTTY\putty.exe" & " -ssh " & $SERVER & " -l" & $USER & " -pw " & $PASPROT) I want to create this script but with multple different SERVER , root , PASSWORD. instead create manual copy paste script one by one and change it, is possible to create automatic script for multiple script purpose?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now