1 2 3 4 5 6 7 8 9
#!/bin/sh dir=`dirname $0` echo $dir cd $dir ./irc-perl-bot.pl "$@" > irc.log 2>&1 & echo "$@" >> irc.log