diff options
author | Gustavo De Nardin <spuk@mandriva.org> | 2009-08-06 06:50:57 +0000 |
---|---|---|
committer | Gustavo De Nardin <spuk@mandriva.org> | 2009-08-06 06:50:57 +0000 |
commit | 4eba212e11e9ae81f90ea5fad68efa0a96025020 (patch) | |
tree | f6da6678be02f6ab74b1cd5b1a6e5089560aa1ad /iurt2.sh | |
parent | 57aee4577e79225142003a350d096b68640207a1 (diff) | |
download | iurt-4eba212e11e9ae81f90ea5fad68efa0a96025020.tar iurt-4eba212e11e9ae81f90ea5fad68efa0a96025020.tar.gz iurt-4eba212e11e9ae81f90ea5fad68efa0a96025020.tar.bz2 iurt-4eba212e11e9ae81f90ea5fad68efa0a96025020.tar.xz iurt-4eba212e11e9ae81f90ea5fad68efa0a96025020.zip |
Adding --iurtlogdir option, to be told where to save output from iurt.
Diffstat (limited to 'iurt2.sh')
-rwxr-xr-x | iurt2.sh | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,6 +1,10 @@ #!/bin/bash + +case "$1" in + --iurtlogdir) LOGFILE="$2/botcmd.`date +%s`.`hostname -s`.log"; shift 2 ;; + *) LOGFILE="/dev/null" ;; +esac + echo PID=$$ -#exec perl -I/usr/local/lib/perl/iurt/lib /usr/local/bin/iurt2 "$@" &>/dev/null -# <mrl> debugging klodia 20080213 -exec perl -I/usr/local/lib/perl/iurt/lib /usr/local/bin/iurt2 "$@" &> /tmp/iurt.mrl.$$ +exec perl -I/usr/local/lib/perl/iurt/lib /usr/local/bin/iurt2 "$@" &>"$LOGFILE" |