Hello Piotr,

Just launch "/bin/sh" as command and issue the commands as if they were written in a shell script. That works also with perl, python, ... most script machines that are installed into the remote host.

Regards,

Aris

Piotr Sipika a écrit :
It would appear that after libssh2_channel_exec() completes, the channel gets destroyed. I created another one and opened up a shell on it to issue the second command -- that worked.

It seems I'm basically in the same boat as the author of the 'multiple exec calls' post.

Thanks,
P


------------------------------------------------------------------------

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to