cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Invoking remote operations by ssh ...

From: Sandro Andrade <sandro.andrade_at_gmail.com>
Date: Wed, 24 Oct 2007 15:44:16 -0300

Hi Dan,

I need to execute commands for start up network services and reload
configuration files, so I think the SFTP commands will not suffice.

doesn't libcurl supports a conventional ssh command invocation ?

If no, do you recommend some other library for invoke ordinary remote
operations ?

Thanks,
Sandro

On 10/24/07, Dan Fandrich <dan_at_coneharvesters.com> wrote:
>
> On Wed, Oct 24, 2007 at 10:42:48AM -0300, Sandro Andrade wrote:
> > Yes, I could do this, but we wouldn't like to create dependencies on
> external
> > tools like ssh. If there is a way to perform this operation
> programmatically it
> > would be better.
> >
> > Do you know if libcurl supports this feature ?
>
> libcurl supports SFTP command quoting, so you are limited to those
> commands
> which are a part of the SFTP protocol. But that includes directory
> listings,
> file transfers and the commands chgrp, chmod, chown, ln, mkdir, pwd,
> rename, rm, rmdir, symlink, which might be enough depending on what you're
> doing.
>
> >>> Dan
> --
> http://www.MoveAnnouncer.com The web change of address
> service
> Let webmasters know that your web site has moved
>

-- 
Sandro Santos Andrade
--------------------------------------------------------
Distributed Systems Laboratory (LaSiD)
Computer Science Department (DCC)
Federal University of Bahia
Brazil
Received on 2007-10-24