Re: Login, su to root, execute command (General questions)
Hi, Drazen :
This is my test code.
It use telnet to to get the response from UNIX server.
But it works so strange.
Every time I run it, I can't get the same result.
<
set ssh = CreateObject( WeOnlyDo.wodSSHCom.1 )
ssh.Login = name
ssh.Password = pwd
ssh.Hostname = ip
ssh.Blocking = 1
ssh.Protocol = 1
ssh.Port = 23
ssh.Timeout = 30
ssh.Connect
ssh.Send rsh server2 & vbLf
ssh.WaitFor ,30
do while ssh.DataReady = 0
loop
a = ssh.Receive
ssh.Send ls & vbLf
ssh.WaitFor ,30
do while ssh.DataReady = 0
loop
b = ssh.Receive
ssh.disconnect
response.write a
response.write <br>---------------<br>
response.write b
>
Complete thread:
- Login, su to root, execute command - wodSupport, 2004-11-11, 23:25
- Re: Login, su to root, execute command - M, 2004-11-12, 13:58
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 14:29
- Re: Login, su to root, execute command - M, 2004-11-12, 15:50
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 15:52
- Re: Login, su to root, execute command - M, 2004-11-12, 18:01
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 18:02
- Re: Login, su to root, execute command - iyikedi, 2005-03-21, 19:12
- Re: Login, su to root, execute command - wodSupport, 2005-03-21, 20:12
- Re: Login, su to root, execute command - Kaliorin, 2005-08-19, 09:08
- Re: Login, su to root, execute command - wodSupport, 2005-08-19, 11:01
- Re: Login, su to root, execute command - kaliorin, 2005-08-19, 11:09
- Re: Login, su to root, execute command - kaliorin, 2005-08-19, 16:06
- Re: Login, su to root, execute command - wodSupport, 2005-08-19, 17:26
- Re: Login, su to root, execute command - Kaliorin, 2005-08-22, 16:07
- Re: Login, su to root, execute command - shin, 2008-05-27, 05:37
- Re: Login, su to root, execute command - shin, 2008-05-27, 05:39
- Re: Login, su to root, execute command - wodDamir, 2008-05-27, 09:26
- Re: Login, su to root, execute command - shin, 2008-05-30, 05:13
- Re: Login, su to root, execute command - shin, 2008-05-30, 05:26
- Re: Login, su to root, execute command - woddrazen, 2008-05-30, 09:11
- Re: Login, su to root, execute command - shin, 2008-06-09, 09:38
- Re: Login, su to root, execute command - woddrazen, 2008-06-09, 10:02
- Re: Login, su to root, execute command - shin, 2008-06-23, 10:40
- Re: Login, su to root, execute command - woddrazen, 2008-06-23, 11:50
- Re: Login, su to root, execute command - shin, 2008-06-24, 03:54
- Re: Login, su to root, execute command - shin, 2008-06-24, 03:59
- Re: Login, su to root, execute command - wodDamir, 2008-06-24, 09:14
- Re: Login, su to root, execute command - shin, 2008-06-24, 03:59
- Re: Login, su to root, execute command - shin, 2008-06-24, 03:54
- Re: Login, su to root, execute command - woddrazen, 2008-06-23, 11:50
- Re: Login, su to root, execute command - shin, 2008-06-23, 10:40
- Re: Login, su to root, execute command - woddrazen, 2008-06-09, 10:02
- Re: Login, su to root, execute command - shin, 2008-06-09, 09:38
- Re: Login, su to root, execute command - woddrazen, 2008-05-30, 09:11
- Re: Login, su to root, execute command - shin, 2008-05-30, 05:26
- Re: Login, su to root, execute command - shin, 2008-05-30, 05:13
- Re: Login, su to root, execute command - wodDamir, 2008-05-27, 09:26
- Re: Login, su to root, execute command - shin, 2008-05-27, 05:39
- Re: Login, su to root, execute command - shin, 2008-05-27, 05:37
- Re: Login, su to root, execute command - Kaliorin, 2005-08-22, 16:07
- Re: Login, su to root, execute command - wodSupport, 2005-08-19, 17:26
- Re: Login, su to root, execute command - kaliorin, 2005-08-19, 16:06
- Re: Login, su to root, execute command - kaliorin, 2005-08-19, 11:09
- Re: Login, su to root, execute command - wodSupport, 2005-08-19, 11:01
- Re: Login, su to root, execute command - Kaliorin, 2005-08-19, 09:08
- Re: Login, su to root, execute command - wodSupport, 2005-03-21, 20:12
- Re: Login, su to root, execute command - iyikedi, 2005-03-21, 19:12
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 18:02
- Re: Login, su to root, execute command - M, 2004-11-12, 18:01
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 15:52
- Re: Login, su to root, execute command - M, 2004-11-12, 15:50
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 14:29
- Re: Login, su to root, execute command - M, 2004-11-12, 13:58