I am using a cluster. I will use the qsub command to distribute my work, I want me to be able to return the job id so that I can control the work.
Basically, I want something like this:
#!/bin/bash JOBID=$( qsub job1 ) # Monitoring base on $JOBID
I found the page http://wiki.ibest.uidaho.edu/index.php/Tutorial:_Submitting_a_job_using_qsub and it talks about the variable PBS_JOBID, but I don’t know how to use it. Does anyone know how to do this?
PBS_JOBID
(My decision now jobID='qsub task | cut -d ' ' -f 3')
jobID='qsub task | cut -d ' ' -f 3'
qsub . ( Grid) qsub, jobid.
qsub
BLAHP ( ).
jobID=`${pbs_binpath}/qsub $bls_tmp_file` # actual submission ... # The job id is actually the first numbers in the string (slurm support) jobID=`echo $jobID | awk 'match($0,/[0-9]+/){print substr($0, RSTART, RLENGTH)}'`
()
qsub PBS, PBS Pro, SLURM.
-terse:
-terse
$ echo sleep 5 | qsub -terse 3543
Source: https://habr.com/ru/post/1535241/More articles:Aggregating duplicate rows by taking the sum - rHow to make sprite move in sinusoidal in cocos2d? - iosGet a video object (or video identifier) from a Facebook graphic - facebookHow to set up continuous integration in Visual Studio Online using Git and Nunit - gitR: checking if a set of variables forms a unique index - rDart extension: html classes in a dart - html5Visual Studio Online: several build controllers - how to add a new build controller - tfsSwitching to a new node in org mode - emacsPhilips hue, конвертировать xy из api в HEX или RGB - javascriptHow to convert RGB value to XY value for Phillips Hue Bulb - pythonAll Articles