Skip to content

Commit 978579b

Browse files
authored
Merge pull request #3168 from bloyl/BUG-sgegraph-3164
FIX: Reliably parse SGE job IDs in the presence of warnings
2 parents b62d806 + 1732136 commit 978579b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/plugins/sgegraph.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def make_job_name(jobnumber, nodeslist):
148148
stdoutFile = ""
149149
if self._qsub_args.count("-o ") == 0:
150150
stdoutFile = "-o {outFile}".format(outFile=batchscriptoutfile)
151-
full_line = "{jobNm}=$(qsub {outFileOption} {errFileOption} {extraQSubArgs} {dependantIndex} -N {jobNm} {batchscript} | awk '{{print $3}}')\n".format(
151+
full_line = "{jobNm}=$(qsub {outFileOption} {errFileOption} {extraQSubArgs} {dependantIndex} -N {jobNm} {batchscript} | awk '/^Your job/{{print $3}}')\n".format(
152152
jobNm=jobname,
153153
outFileOption=stdoutFile,
154154
errFileOption=stderrFile,

0 commit comments

Comments
 (0)