mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +01:00
include date in output
This commit is contained in:
parent
2d740bd4b0
commit
daa84bf4e2
1 changed files with 2 additions and 3 deletions
|
@ -4,7 +4,6 @@ HOSTNAME=localhost
|
|||
ROOM_ADD=""
|
||||
NGAMES=10
|
||||
PORT=10999
|
||||
DBUG=0
|
||||
HOW_LONG=360
|
||||
DICT=dict.xwd
|
||||
|
||||
|
@ -45,7 +44,7 @@ do_one() {
|
|||
$EXE -u -o -0 -C "$ROOM" -a $HOSTNAME -r Relay -d $DICT -p $PORT \
|
||||
$SERVER >/dev/null 2>>${LOG_FILE} &
|
||||
PID=$!
|
||||
echo "launched $ROOM (pid=$PID)"
|
||||
echo "$(date): launched $ROOM (pid=$PID)"
|
||||
|
||||
END_TIME=$(($(date +%s) + $HOW_LONG))
|
||||
while [ -d /proc/$PID ]; do
|
||||
|
@ -56,7 +55,7 @@ do_one() {
|
|||
elif [ ! -d /proc/$PID ]; then
|
||||
break
|
||||
elif [ $(date +%s) -ge $END_TIME ]; then
|
||||
echo "timing out $ROOM ($PID)"
|
||||
echo "$(date): timing out $ROOM ($PID)"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Add table
Reference in a new issue