www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: Executing commands for channel

Re: Executing commands for channel

From: Peter Stuge <peter_at_stuge.se>
Date: Tue, 7 Jul 2015 11:40:58 +0200

Kishore Av wrote:
> I need to know how to send continuous commands to execute with remote host.

You have to first execute some command on the remote host which will
accept those commands from you and execute them on your behalf.

As you discovered, you can only execute one command in one SSH channel.

You have to choose for yourself what program is suitable as the first
command. Most shells are not suited because they are written as user
interfaces for humans. You need a programmable shell, which is not
common. You probably have to write one yourself, but that's not so
easy.

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2015-07-07

the libssh2 team