TRICKS
changeset 269 56061026d168
parent 183 95d49e8a8cec
child 278 1698b327528d
equal deleted inserted replaced
268:1b7a31342f43 269:56061026d168
    27 -------------------------
    27 -------------------------
    28 In X windows, inside bash, after submitting the task, I use:
    28 In X windows, inside bash, after submitting the task, I use:
    29 $ ( ts -w ; xmessage Finished! ) &
    29 $ ( ts -w ; xmessage Finished! ) &
    30 
    30 
    31 
    31 
    32 Dependant commands
       
    33 -------------------------
       
    34 If you want your command to be run only if the job before went well,
       
    35 use the parameter -d.
       
    36 If you want a job to be executed depending on the result of any
       
    37 previous job run, you can enqueue this way:
       
    38 $ ts sh -c 'ts -w JOBID && NEWCOMMAND'
       
    39 
       
    40 
       
    41 Killing process groups
    32 Killing process groups
    42 -------------------------
    33 -------------------------
    43 ts creates a new session for the job, so the pid of the command run can be
    34 ts creates a new session for the job, so the pid of the command run can be
    44 used as the process group id for the command and its childs. So, you can use
    35 used as the process group id for the command and its childs. So, you can use
    45 something like:
    36 something like: