Re: WaitFor Procedures (General questions)
Hi Barry,
You can still receive what is in the buffer by using Receive method. Also, in VB we have On Error GoTo statement, which prevents application from throwing an exception (I'm not sure if that exists in WinBatch and how errors are handled there). So the code would look something like this:
On Error GoTo ErrorHandler
some_variable = ssh1.WaitFor prompt , 30
ErrorHandler:
some_variable = ssh1.Receive
Can you try something like that in WinBatch?
Regards,
Damba
Complete thread:
- WaitFor Procedures - bmclellan, 2008-04-29, 15:46
- Re: WaitFor Procedures - wodDamir, 2008-04-29, 16:11
- Re: WaitFor Procedures - bmclellan, 2008-04-29, 16:34
- Re: WaitFor Procedures - woddrazen, 2008-04-29, 16:54
- Re: WaitFor Procedures - bmclellan, 2008-04-29, 17:28
- Re: WaitFor Procedures - woddrazen, 2008-04-29, 17:47
- Re: WaitFor Procedures - bmclellan, 2008-04-29, 20:04
- Re: WaitFor Procedures - woddrazen, 2008-04-29, 21:14
- Re: WaitFor Procedures - bmclellan, 2008-04-29, 21:46
- Re: WaitFor Procedures - woddrazen, 2008-04-29, 23:07
- Re: WaitFor Procedures - bmclellan, 2008-04-30, 20:21
- Re: WaitFor Procedures - wodDamir, 2008-04-30, 20:38
- Re: WaitFor Procedures - bmclellan, 2008-04-30, 20:48
- Re: WaitFor Procedures - bmclellan, 2008-05-01, 16:41
- Re: WaitFor Procedures - woddrazen, 2008-05-01, 20:33
- Re: WaitFor Procedures - bmclellan, 2008-05-02, 03:49
- Re: WaitFor Procedures - woddrazen, 2008-05-01, 20:33
- Re: WaitFor Procedures - bmclellan, 2008-05-01, 16:41
- Re: WaitFor Procedures - bmclellan, 2008-04-30, 20:48
- Re: WaitFor Procedures - wodDamir, 2008-04-30, 20:38
- Re: WaitFor Procedures - bmclellan, 2008-04-30, 20:21
- Re: WaitFor Procedures - woddrazen, 2008-04-29, 23:07
- Re: WaitFor Procedures - bmclellan, 2008-04-29, 21:46
- Re: WaitFor Procedures - woddrazen, 2008-04-29, 21:14
- Re: WaitFor Procedures - bmclellan, 2008-04-29, 20:04
- Re: WaitFor Procedures - woddrazen, 2008-04-29, 17:47
- Re: WaitFor Procedures - bmclellan, 2008-04-29, 17:28
- Re: WaitFor Procedures - woddrazen, 2008-04-29, 16:54
- Re: WaitFor Procedures - bmclellan, 2008-04-29, 16:34
- Re: WaitFor Procedures - wodDamir, 2008-04-29, 16:11