aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"