redirect cron output to a logfile

This commit is contained in:
Enno Rehling 2018-06-11 21:00:01 +02:00 committed by Enno Rehling
parent 6403c75c85
commit 68f241ad7d
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
(
[ "$PREVIEW" != "yes" ] && exit
[ -z ${ERESSEA} ] && ERESSEA=$HOME/eressea
@ -13,3 +13,5 @@ for game in 2 3 4 ; do
${SRC}/s/preview -g ${game} run && \
${SRC}/s/preview -g ${game} send
done
) | tee -a $HOME/log/preview.cron.log