Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dsdp-tm-dev] "Run a command" functionality

On 18 June 2011 10:12, Vladimir Prus <vladimir@xxxxxxxxxxxxxxxx> wrote:
> in a few cases in our product, we're interested in just running a command remotely,
> getting its exit status and output. At the same time, it's explicitly not desirable
> to show the user any console window with the command output.

We wrote a command launcher API for CDT. You can provide custom
command runners that execute the command locally, on a remote host, on
a queue of machines - however you want. The idea for us was that we
want to be able to farm out heavy-weight debug sessions and builds off
of interactive machines.  One of the built-in launchers, for example,
is a 'wrapped command launcher', with some UI for the user to control
how an arbitrary process is run. So the user can turn:
<make -j8 all>  -> ssh foo <make -j8 all>
Wrapping running an exe like make, and its command line options, in
another command, as well as adding additional arguments for running

I'm not sure this is quite what you're after, but the patch we have
for this is here (I intended to commit it back to CDT, but it fell of
my radar) :


Back to the top