3.2.1 - Add Check

Action Option -AC (-AddCheck) :

adds a check record so that a command runs later, driven by the dscheck daemon (or by an explicit -PC invocation).

dscheck -(AC|AddCheck) [Mode Option]
-(CM|Command) CommandNames
[-(AV|ArgumentVector) ArgumentVectorString]
[-(SN|Specialist) SpecialistNames]
[-(HN|HostName) HostNames]
[-(DS|Dataset) DatasetIDs]
[-(AN|ActionName) ActionNames]
[-(PI|ParentIndex) ParentCheckIndex]
[-(PQ|PBSQueue) PBSBatchQueue]
[-(WD|WorkDir) WorkingDirectory]
[-(MC|MaxCount) MaxTryCount]
[-(MO|Modules) ModuleList]
[-(EV|Environments) EnvironmentPairList]
[-(QS|QsubOptions) PBSBatchOptions]
[-(OF|OutputFile) OutputFileName]
[-(DB|Debug) DebugModeInfo]

Available mode option:

-(AW|AnyWhere)

leave the working directory empty in the check record so the command may run from any location.

Defaults:

Owner

the specialist running dscheck.

Working directory

the current directory at the time of -AC.

Host

none specified; daemon control governs placement.

Use -PI (-ParentIndex) to make the new check wait for an existing parent check to finish before it can run. Use -QS to pass options through to qsub when the command will run as a PBS batch job.

Limitations:

  • Shell redirections and pipes (>, >>, |, <) are not supported in the deferred command line. Wrap such commands in a shell script and add the script.

Examples:

dscheck -AC -CM test1.sh -HN PBS

<<Content of shell script test1.sh>> (ls -l | grep test) | tee test1.out

List files containing ‘test’, capturing stdout and stderr to separate log files:

<<Content of shell script test2.sh>> (ls -l | grep test) 1> test2.out 2>test2.err

Add the executable ‘test3’ for deferred execution on PBS:

The command ‘test3’ must be executable from the working directory on the PBS machine.