enhancement on retry for getpostscript in xcatdsklspost
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3610 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f97cc4c345
commit
166a0dab7c
@ -78,14 +78,14 @@ export PATH
|
||||
chmod +x /xcatpost/*;
|
||||
echo "PATH=$PATH"
|
||||
/xcatpost/getpostscript.awk | sed -e 's/<[^>]*>//g'|egrep -v '^ *$'|sed -e 's/^ *//' > /tmp/mypostscript;
|
||||
MYCONT=`cat /tmp/mypostscript`
|
||||
MYCONT=`grep MASTER /tmp/mypostscript`
|
||||
#echo "MYCONT=$MYCONT"
|
||||
while [ -z "$MYCONT" ]; do
|
||||
let SLI=$RANDOM%10
|
||||
let SLI=10+$SLI
|
||||
sleep $SLI
|
||||
/xcatpost/getpostscript.awk | sed -e 's/<[^>]*>//g'|egrep -v '^ *$'|sed -e 's/^ *//' > /tmp/mypostscript;
|
||||
MYCONT=`cat /tmp/mypostscript`
|
||||
MYCONT=`grep MASTER /tmp/mypostscript`
|
||||
# echo "MYCONT=$MYCONT"
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user