2009/8/4 Peter Stuge <[email protected]>: > vti wrote: >> How can I know when a program is executed when I do: >> >> libssh2_channel_open_session() >> libssh2_channel_request_pty() >> libssh2_channel_shell() >> libssh2_channel_write(<my command>) >> >> ... wait while command is executing ... >> >> libssh2_channel_send_eof() >> libssh2_channel_wait_eof() > > You must already know exactly how the device will behave. >
I am afraid I don't understand what you mean. Would you be so kind to clear what do you mean by 'device'? I am using nonblocking version. Scp functionality works perfect. But to make remote commands to work I have to do sleep(<some empirical number>). Regards, vti _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
