Quote:
...If you call WaitForStrings() instead of WaitForString(), do you get better behavior?
|
I was getting the error for using "WaitForString()". Making it plural did fix that issue, but came across another.
When running the script, Case 1 is working perfectly fine. When I come across a server where I need a password, it will not go directly to Case 2, but stop. I get a return of:
$ ssh -n -q SERVER1 'mkdir .ssh'
mkdir: cannot create directory ‘.ssh’: File exists
$ ssh -n -q SERVER2 'mkdir .ssh'
mkdir: cannot create directory ‘.ssh’: File exists
$ ssh -n -q SERVER3 'mkdir .ssh'
mkdir: cannot create directory ‘.ssh’: File exists
$ ssh -n -q SERVER4 'mkdir .ssh'
Enter Active Directory (US) Password:
I am wanting this to be essentially automated so I can run without any interaction