blob: f333bb331d1f2fe4d1cd12ad4c7c7cf281902ba9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
case "$1" in
--iurtlogdir) LOGFILE="$2/botcmd.`date +%s`.`hostname -s`.log"; shift 2 ;;
*) LOGFILE="/dev/null" ;;
esac
touch "$LOGFILE" &>/dev/null || LOGFILE="/dev/null"
echo PID=$$
exec perl -I/usr/local/lib/perl/iurt/lib /usr/local/bin/iurt2 "$@" &>"$LOGFILE"
|