Re: Using wodSSH with PowerShell? (General questions)
Sean,
Can you try regex statement like this: regex:[~$ #>] $ ??
Also, does it work if you set exact prompt that you receive?
Regards,
Damba
Hi Damba,
Ok tried that and still no luck. I also tried specifying just this:
ssh.WaitFor( ~ # )
or
ssh.WaitFor( ~ # )
those didn't work either. I read up on the WaitFor method in your documentation, and see that it takes two parameters - one is mandatory - the string we expect to wait for to indicate we are done collecting data, and then optional, timeout value. If timeout is not specified then it defaults to $ssh.Timeout (which I have tried as 15 seconds to 120 seconds).
So my WaitFor method is essentially timing out and not finding what its looking for I would say... This is odd as it should just find the prompt of the SSH shell surely?
Any other suggestions?
Would giving you remote ssh access to this box help? I really don't mind configuring that because it is a test box at home.
Sean
Complete thread:
- Using wodSSH with PowerShell? - Sean, 2012-03-13, 19:45
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 21:45
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 21:48
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 21:59
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 22:24
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 22:26
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 22:34
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 22:49
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 22:55
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 23:01
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 23:47
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-14, 22:32
- Re: Using wodSSH with PowerShell? - wodDamir, 2012-03-14, 22:46
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-14, 23:29
- Re: Using wodSSH with PowerShell? - wodDamir, 2012-03-14, 23:58
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-15, 00:03
- Re: Using wodSSH with PowerShell? - wodDamir, 2012-03-14, 23:58
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-14, 23:29
- Re: Using wodSSH with PowerShell? - wodDamir, 2012-03-14, 22:46
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-14, 22:32
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 23:47
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 23:01
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 22:55
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 22:49
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 22:34
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 22:26
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 22:24
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 21:59
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 21:48
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 21:45