Added start scripts
This commit is contained in:
17
loop.sh
Normal file
17
loop.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# You can cd to your directory here, if you want
|
||||
# cd /home/user/TelegramPoster
|
||||
|
||||
while true
|
||||
do
|
||||
python main.py
|
||||
echo "To completely stop TelegramPoster now, please press Ctrl+C during the countdown!"
|
||||
echo "Restarting in:"
|
||||
for i in 5 4 3 2 1
|
||||
do
|
||||
echo "$i..."
|
||||
sleep 1
|
||||
done
|
||||
echo "TelegramPoster has started!"
|
||||
done
|
Reference in New Issue
Block a user