Re: Multiple PromptReceived don't seem to work (General questions)
Hi,
If you set Blocking Property to True, than wodTelnetDLX will execute line by line. Wait to execute first command and that go to second (if your code is working good).
Other option which is better is that you use Login and Password Property instead Send Method for authentication to server.
Here is example in C#. Example will show you how to connect to some server and execute some command (ls -al in this case) with wodTelnetDLX:
-----------------------------------------
tel1 = new WODTELNETDLXCOMLIB.wodTelnetDLXCom();
tel1.Hostname = your_server_name ;
tel1.Protocol = WODTELNETDLXCOMLIB.ProtocolsEnum.Telnet;
tel1.Login = your_login ;
tel1.Password = your_password ;
tel1.Blocking = true;
tel1.Connect( your_server_name ,23,WODTELNETDLXCOMLIB.ProtocolsEnum.Telnet);
tel1.WaitFor ( regex:[$ #>] $ ,30);
textBox1.Text = textBox1.Text + (tel1.Execute ( ls -al +
, regex:[$ #>] $ ,30));
-----------------------------------------
More help for Blocking Property you can find here:
http://www.weonlydo.com/TelnetDLX/Help/WODTELNETDLXLIB~wodTelnetDLX~Blocking.html
Hope I helped.
Regards,
Drazen
Complete thread:
- Multiple PromptReceived don't seem to work - hactic, 2006-10-09, 15:58
- Re: Multiple PromptReceived don't seem to work - wodDrazen, 2006-10-09, 16:30
- Re: Multiple PromptReceived don't seem to work - hactic, 2006-10-09, 17:02
- Re: Multiple PromptReceived don't seem to w - wodDrazen, 2006-10-09, 17:30
- Re: Multiple PromptReceived don't seem to work - hactic, 2006-10-23, 10:49
- Re: Multiple PromptReceived don't seem to w - wodDrazen, 2006-10-09, 17:30
- Re: Multiple PromptReceived don't seem to work - hactic, 2006-10-09, 17:02
- Re: Multiple PromptReceived don't seem to work - wodDrazen, 2006-10-09, 16:30