You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Capture grid_submit.sh's own stderr (its "pok" status messages go there) while still showing it live,
154
+
# so we can pull out the one line that tells us where this submission's data will actually land -- same
155
+
# mechanism submitMapCreation.sh uses for its own stage1Workdir pointer. Nothing downstream needed
156
+
# stage 2's own output location before now; this exists so a future consumer (e.g. a pipeline that reads
157
+
# stage 2's FT_*.root as an input) can find it without guessing.
158
+
SUBMIT_LOG=$("${O2DPG_ROOT}/GRID/utils/grid_submit.sh""${GRID_SUBMIT_ARGS[@]}"2>&1| tee /dev/stderr)
159
+
160
+
# Strip ANSI color codes (pok() wraps its output in \033[32m...\033[m) before parsing.
161
+
MY_JOBWORKDIR=$(echo "${SUBMIT_LOG}"| sed -E 's/\x1b\[[0-9;]*m//g'| sed -n "s/^Your job's working directory will be //p"| tail -1)
162
+
if [[ -z"${MY_JOBWORKDIR}" ]];then
163
+
echo"ERROR: could not find \"Your job's working directory will be ...\" in grid_submit.sh's output -- a future consumer of this stage's output won't be able to find it. Aborting.">&2
0 commit comments