run-command example for remote-api

3 posts / 0 new
Last post
#1 Mon, 12/21/2009 - 04:14
bvansomeren

run-command example for remote-api

Hi,

I've been using the commandline API and the remote-api with some success to automate some tasks, but I'm a little stuck on using run-command with the remote cgi api. Can anybody give me a working example.

For example, doing this: https://server:port/server-manager/remote.cgi?program=run-command&host=k...

yields: sh: --df: command not found

Exit status: 0

Mon, 12/28/2009 - 07:36
bvansomeren

C'mon, nobody?

Tue, 12/29/2009 - 11:19
andreychek

Howdy,

Hmm, looking through the various API docs and the command line help, I don't think I see anything that suggests there's a run-program function at the moment.

I could certainly be missing it -- but it's quite possible there isn't one.

If that's something you need -- you could always file a feature request.

-Eric

Topic locked