3.2.1 - Add Check

      Action Option -AC (-AddCheck) :

      adds check information for a delayed mode command execution.

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

      Mode option that can be specified for adding check control Action:

      Command name is mandatory for adding a new check for delayed mode execution. Unless they are specified, the current specialist who adds the command is defaulted as the owner of the added check record, and the current path is defaulted as the working directory when the command is executed later.

      Specified addtional PBS batch options via Info option -QS (-QSubOptions) to add a check; and specify a parent check index to put the current command on hold until the parent check is finished.

      Commands containing redirections and pipes are not supported for delayed mode. A simple shell script can be used to wrap a complicated command.


      EXAMPLE 3.

      To List File Names In The Current Directory With Name Containing 'Test' by catching the standard output into a log and display it on screen

      Content of shell script test1.sh:

      (ls -l | grep test) | tee test1.out


      EXAMPLE 4.

      To List File Names In The Current Directory With Name Containing 'Test' by catching the standard output and error into separate log files

      Content of shell script test2.sh:

      (ls -l | grep test) 1> test2.out 2>test2.err


      EXAMPLE 5.

      To Add Testing Command 'Test2' Into 'Dscheck' For Delayed Mode Execution On SLURM

      dsheck AC -CM test2 -HN SLURM

      The command 'test2' must be executable at the current working directory on SLURM machines.



      Back to Top
      -(AW|AnyWhere)sets Working directory empty in check record to start processing the check anywhere.