Skip to content
Snippets Groups Projects
Commit af4c4812 authored by mattijs's avatar mattijs
Browse files

BUG: foamPrintJobs: handle hostnames being strings, not words

parent f1e0067c
Branches
Tags
No related merge requests found
...@@ -236,9 +236,9 @@ rm -f $TMPFILE; touch $TMPFILE ...@@ -236,9 +236,9 @@ rm -f $TMPFILE; touch $TMPFILE
RUNJOBS=`getAllJobs $FOAM_JOB_DIR/runningJobs` RUNJOBS=`getAllJobs $FOAM_JOB_DIR/runningJobs`
for f in $RUNJOBS for f in $RUNJOBS
do do
machinePid=`basename $f` machinePid=`basename $f | sed -e 's/^"//' -e 's/"$//'`
machine=`echo $machinePid | sed -e 's/\.[0-9][0-9]*$//'` machine=`echo "$machinePid" | sed -e 's/\.[0-9][0-9]*$//'`
pid=`echo $machinePid | sed -e 's/.*\.\([0-9][0-9]*\)$/\1/'` pid=`echo "$machinePid" | sed -e 's/.*\.\([0-9][0-9]*\)$/\1/'`
fgrep "$machine" $TMPFILE >/dev/null 2>&1 fgrep "$machine" $TMPFILE >/dev/null 2>&1
if [ $? -ne 0 ] if [ $? -ne 0 ]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment