mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Removed the host prefix as this inhibits correct error parsing by intelligent editors.
This commit is contained in:
@ -163,18 +163,6 @@ colourPipe()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# prefix message with [HOSTNAME]
|
|
||||||
#
|
|
||||||
prefixPipe()
|
|
||||||
{
|
|
||||||
while read line
|
|
||||||
do
|
|
||||||
echo "[$@] $line"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
colourIndex=0
|
colourIndex=0
|
||||||
|
|
||||||
while :
|
while :
|
||||||
@ -210,11 +198,11 @@ do
|
|||||||
retval=$?
|
retval=$?
|
||||||
else
|
else
|
||||||
if [ "$host" = "$HOST" ]; then
|
if [ "$host" = "$HOST" ]; then
|
||||||
eval $* 2>&1 | prefixPipe "$host"
|
eval $* 2>&1
|
||||||
elif [ -n "$JOB_ID" ]; then
|
elif [ -n "$JOB_ID" ]; then
|
||||||
qrsh -inherit -v PWD $host "$rcmd" | prefixPipe "$host"
|
qrsh -inherit -v PWD $host "$rcmd"
|
||||||
else
|
else
|
||||||
ssh $host "$sourceFoam 2>/dev/null; cd $PWD && $rcmd" 2>&1 | prefixPipe "$host"
|
ssh $host "$sourceFoam 2>/dev/null; cd $PWD && $rcmd" 2>&1
|
||||||
fi
|
fi
|
||||||
retval=$?
|
retval=$?
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user