curl-library
Invoking remote operations by ssh ...
From: Sandro Andrade <sandro.andrade_at_gmail.com>
Date: Wed, 24 Oct 2007 09:57:17 -0300
Date: Wed, 24 Oct 2007 09:57:17 -0300
Hi,
Can I use libcurl for the execution of remote operations by using ssh ?
I have to perform programmatically commands such as:
ssh <host> "/etc/init.d/<some_service> start"
In some cases, I need to grab the resulting messages:
ssh <host> "ls -la" ... get the response
I would be grateful for some source-code example for this feature.
Thanks in advance,
-- Sandro Santos Andrade -------------------------------------------------------- Distributed Systems Laboratory (LaSiD) Computer Science Department (DCC) Federal University of Bahia BrazilReceived on 2007-10-24