16 lines
284 B
Bash
Executable File
16 lines
284 B
Bash
Executable File
#!/bin/sh
|
|
|
|
BINDIR="`dirname "$0"`"
|
|
HOMEDIR="`dirname "$BINDIR"`"
|
|
|
|
echo "BINDIR=$BINDIR"
|
|
echo "HOMEDIR=$HOMEDIR"
|
|
|
|
cd "$BINDIR"
|
|
|
|
#nohup /srv/welcomebot/git/bot.py >> /dev/null 2>>../welcomebot.log &
|
|
|
|
nohup python -u "$BINDIR/bot.py" 2>&1 | grep -v "^$" >> "$HOMEDIR/welcomebot.log" &
|
|
|
|
|