kopia lustrzana https://github.com/J-Rios/TLG_JoinCaptchaBot
17 wiersze
298 B
Bash
Executable File
17 wiersze
298 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
PID=`ps -aux | grep -e "[j]oin_captcha_bot.py" | awk 'FNR == 1 {print $2}'`
|
|
|
|
if [ ! -z "$PID" ]; then
|
|
echo "Already running."
|
|
exit 1
|
|
fi
|
|
|
|
rm -f ./data/captchas/*
|
|
nohup python3 -u join_captcha_bot.py > output.log 2>&1 &
|
|
echo "Starting Script..."
|
|
sleep 1
|
|
./status
|
|
|
|
exit 0
|