aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2.sh
diff options
context:
space:
mode:
authorGustavo De Nardin <spuk@mandriva.org>2009-08-06 06:50:57 +0000
committerGustavo De Nardin <spuk@mandriva.org>2009-08-06 06:50:57 +0000
commit4eba212e11e9ae81f90ea5fad68efa0a96025020 (patch)
treef6da6678be02f6ab74b1cd5b1a6e5089560aa1ad /iurt2.sh
parent57aee4577e79225142003a350d096b68640207a1 (diff)
downloadiurt-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-xiurt2.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/iurt2.sh b/iurt2.sh
index dac51be..0712755 100755
--- a/iurt2.sh
+++ b/iurt2.sh
@@ -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"