diff options
-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" |