Archive Index
This month's Index
|
Subject: Re: libssh2_channel_read issues
Re: libssh2_channel_read issues
From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Fri, 13 Apr 2012 23:56:15 +0200
fre 2012-04-13 klockan 09:39 +0100 skrev Zulfiqar Malik:
> My understanding was that the EOF was completely incorrect it seems.
Why do you think libssh2_channel_exec is the right one for you?
> However, I have a slight problem. I think exec only allows you to
Yes. libssh2_channel_exec requests the exec service type. This service
If you want to execute multiple commands then a shell service is more
> This is a bit of a problem for me since our remote cluster setup
How is that specified?
How would you do it when using for example openssh ssh command?
libssh2_channel_exec() is the equivalence of
ssh -T hostname command
compared to libssh_channel_shell() which is more similar to
ssh -T hostname
and then give the desired command(s) as input.
Regards
_______________________________________________
|