Re: Receive problem in SSH (General questions)
Jeff,
ok, send you code back.
Your problem is that you blindly send commands. When you login to remote system, you get command prompt, right? You don't know what this prompt look like, but we do have nice regular expression (wodSSH supports that) that catches most command prompts. So I used it.
Look at new sample. When you connect, you wait for command prompt. Then you send command, and then wait for new command prompt. Everything between your Send and Waitfor is returned as result of Waitfor - so you print it.
Hope change helped!
Kreso
Complete thread:
- Receive problem in SSH - Jeff, 2006-01-12, 21:59
- Re: Receive problem in SSH - wodSupport, 2006-01-12, 23:13
- Re: Receive problem in SSH - Jeff, 2006-01-13, 00:03
- Re: Receive problem in SSH - wodSupport, 2006-01-13, 00:51
- Re: Receive problem in SSH - Jeff, 2006-01-13, 18:01
- Re: Receive problem in SSH - wodSupport, 2006-01-13, 20:18
- Re: Receive problem in SSH - wodSupport, 2006-01-13, 20:25
- Re: Receive problem in SSH - Jeff, 2006-01-13, 23:10
- Re: Receive problem in SSH - wodSupport, 2006-01-13, 20:25
- Re: Receive problem in SSH - wodSupport, 2006-01-13, 20:18
- Re: Receive problem in SSH - Jeff, 2006-01-13, 18:01
- Re: Receive problem in SSH - wodSupport, 2006-01-13, 00:51
- Re: Receive problem in SSH - Jeff, 2006-01-13, 00:03
- Re: Receive problem in SSH - wodSupport, 2006-01-12, 23:13