OpendTect-6_4
6.4
|
Encapsulates an actual command to execute + the machine to run it on. More...
Public Member Functions | |
MachineCommand (const char *comm=0) | |
MachineCommand (const char *comm, const char *hnm) | |
const char * | command () const |
void | setCommand (const char *cm) |
const char * | hostName () const |
void | setHostName (const char *hnm) |
const char * | remExec () const |
void | setRemExec (const char *sh) |
bool | isBad () const |
bool | setFromSingleStringRep (const char *, bool ignorehostname=false) |
const char * | getSingleStringRep () const |
bool | hasHostName () const |
BufferString | getLocalCommand () const |
BufferString | runAndCollectOutput (BufferString *errmsg=nullptr) |
for quick get-me-the-output-of-this-command More... | |
Static Public Member Functions | |
static const char * | defaultRemExec () |
static void | setDefaultRemExec (const char *s) |
static const char * | extractHostName (const char *, BufferString &) |
returns remaining part More... | |
static const char * | odRemExecCmd () |
static const char * | sKeyRemoteHost () |
static const char * | sKeyRemoteCmd () |
static const char * | sKeyMasterHost () |
static const char * | sKeyMasterPort () |
static const char * | sKeyBG () |
static const char * | sKeyFG () |
static const char * | sKeyJobID () |
Protected Attributes | |
BufferString | comm_ |
BufferString | hname_ |
BufferString | remexec_ |
Static Protected Attributes | |
static BufferString | defremexec_ |
Encapsulates an actual command to execute + the machine to run it on.
The default remote execution command is ssh.
OS::MachineCommand::MachineCommand | ( | const char * | comm = 0 | ) |
Sets from single string. Assumes that arguments are space separated, and command with spaces in them are properly escaped.
OS::MachineCommand::MachineCommand | ( | const char * | comm, |
const char * | hnm | ||
) |
|
inline |
|
inlinestatic |
|
static |
returns remaining part
BufferString OS::MachineCommand::getLocalCommand | ( | ) | const |
const char* OS::MachineCommand::getSingleStringRep | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
BufferString OS::MachineCommand::runAndCollectOutput | ( | BufferString * | errmsg = nullptr | ) |
for quick get-me-the-output-of-this-command
|
inline |
|
inlinestatic |
bool OS::MachineCommand::setFromSingleStringRep | ( | const char * | , |
bool | ignorehostname = false |
||
) |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
protected |
|
staticprotected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019