![]() |
XRootD
|
#include <XrdOucProg.hh>
Public Member Functions | |
XrdOucProg (XrdSysError *errobj=0, int efd=-1) | |
~XrdOucProg () | |
int | Feed (const char *data) |
int | Feed (const char *data, int dlen) |
int | Feed (const char *data[], const int dlen[]) |
XrdOucStream * | getStream () const |
bool | isLocal () |
int | Run (char *outBuff, int outBsz, const char *arg1=0, const char *arg2=0, const char *arg3=0, const char *arg4=0) const |
int | Run (const char *arg1=0, const char *arg2=0, const char *arg3=0, const char *arg4=0) const |
int | Run (const char *argV[], int argC, const char *envV[]=0) const |
int | Run (XrdOucStream *Sp, const char *arg1=0, const char *arg2=0, const char *arg3=0, const char *arg4=0) const |
int | Run (XrdOucStream *Sp, const char *argV[], int argc=0, const char *envV[]=0) const |
int | RunDone (XrdOucStream &cmd) const |
int | Setup (const char *prog, XrdSysError *errP=0, int(*Proc)(XrdOucStream *, char **, int)=0) |
int | Start (void) |
Definition at line 37 of file XrdOucProg.hh.
|
inline |
Definition at line 45 of file XrdOucProg.hh.
XrdOucProg::~XrdOucProg | ( | ) |
Definition at line 53 of file XrdOucProg.cc.
|
inline |
Definition at line 63 of file XrdOucProg.hh.
References Feed().
Referenced by Feed().
|
inline |
Definition at line 57 of file XrdOucProg.hh.
References Feed().
int XrdOucProg::Feed | ( | const char * | data[], |
const int | dlen[] | ||
) |
Definition at line 63 of file XrdOucProg.cc.
References XrdSysError::Emsg(), XrdOucStream::isAlive(), XrdOucStream::LastError(), XrdSysMutexHelper::Lock(), and XrdOucStream::Put().
Referenced by Feed(), XrdBwmLogger::sendEvents(), XrdOfsEvs::sendEvents(), and XrdOssSys::Stage_QT().
|
inline |
Definition at line 68 of file XrdOucProg.hh.
Referenced by XrdFrmPurge::Init().
|
inline |
Definition at line 72 of file XrdOucProg.hh.
int XrdOucProg::Run | ( | char * | outBuff, |
int | outBsz, | ||
const char * | arg1 = 0 , |
||
const char * | arg2 = 0 , |
||
const char * | arg3 = 0 , |
||
const char * | arg4 = 0 |
||
) | const |
Definition at line 216 of file XrdOucProg.cc.
References XrdOucStream::GetLine(), RunDone(), and runWithVec.
int XrdOucProg::Run | ( | const char * | arg1 = 0 , |
const char * | arg2 = 0 , |
||
const char * | arg3 = 0 , |
||
const char * | arg4 = 0 |
||
) | const |
Definition at line 192 of file XrdOucProg.cc.
References XrdSysError::Emsg(), XrdOucStream::GetLine(), RunDone(), and runWithVec.
int XrdOucProg::Run | ( | const char * | argV[], |
int | argC, | ||
const char * | envV[] = 0 |
||
) | const |
Definition at line 156 of file XrdOucProg.cc.
References XrdSysError::Emsg(), XrdOucStream::GetLine(), Run(), and RunDone().
int XrdOucProg::Run | ( | XrdOucStream * | Sp, |
const char * | arg1 = 0 , |
||
const char * | arg2 = 0 , |
||
const char * | arg3 = 0 , |
||
const char * | arg4 = 0 |
||
) | const |
int XrdOucProg::Run | ( | XrdOucStream * | Sp, |
const char * | argV[], | ||
int | argc = 0 , |
||
const char * | envV[] = 0 |
||
) | const |
Definition at line 108 of file XrdOucProg.cc.
References XrdSysError::Emsg(), XrdOucStream::Exec(), XrdOucStream::LastError(), XrdOucEnv::PutPtr(), and XrdOucStream::SetEnv().
Referenced by XrdXrootdJob2Do::DoIt(), XrdOssSys::GetFile(), XrdOssSys::MSS_Xeq(), Run(), XrdOfsPrepGPIReal::PrepGRun::Run(), Start(), and XrdOfsTPCProg::Xeq().
int XrdOucProg::RunDone | ( | XrdOucStream & | cmd | ) | const |
Definition at line 257 of file XrdOucProg.cc.
References XrdOucStream::Drain(), and XrdSysError::Emsg().
Referenced by XrdXrootdJob2Do::DoIt(), Run(), XrdOfsPrepGPIReal::PrepGRun::Run(), and XrdOfsTPCProg::Xeq().
int XrdOucProg::Setup | ( | const char * | prog, |
XrdSysError * | errP = 0 , |
||
int(*)(XrdOucStream *, char **, int) | Proc = 0 |
||
) |
Definition at line 296 of file XrdOucProg.cc.
References access(), XrdOucUtils::argList(), and XrdSysError::Emsg().
Referenced by XrdOssSys::ConfigStage(), XrdOssSys::ConfigStageC(), XrdOfsTPCProg::Init(), XrdFrmPurge::Init(), XrdBwmLogger::Start(), XrdOfsEvs::Start(), and XrdOfsgetPrepare().
int XrdOucProg::Start | ( | void | ) |
Definition at line 349 of file XrdOucProg.cc.
References Run().
Referenced by XrdOssSys::ConfigStageC(), XrdFrmPurge::Init(), XrdBwmLogger::Start(), and XrdOfsEvs::Start().