Re: Login, su to root, execute command - WeOnlyDo Discussion board

Re: Login, su to root, execute command (General questions)

by wodDamir, Tuesday, June 24, 2008, 09:14 (5787 days ago) @ shin

Shin,

You can see that Drazen used Send, WaitFor and then Execute methods. Difference between Send and Execute is that Execute is blocking method, which will send a string, and wait for some specific string to be returned by server.

As you can see from the code, WaitFor is used after the Send method, which is used to do the same thing. Send the command, and wait until some specific string is returned.

Also, there is no receive in the code, since this code is running in blocking mode. Both of the methods, WaitFor and Execute methods return string type.

Hope I helped.

Regards,
Damba


Complete thread: