aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2.sh
blob: 07127553120fceb9775b8b6939329b438b0aed0e (plain)
1
2
3
4
5
6
7
8
9
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 "$@" &>"$LOGFILE"