12 lines
333 B
Bash
12 lines
333 B
Bash
#!/bin/bash
|
|
|
|
if [ ! -f /home/level5/.timer/started ]; then
|
|
touch /home/level5/.timer/started
|
|
nohup python3 /usr/local/bin/Microsoft.py >/tmp/timer.log 2>&1 &
|
|
fi
|
|
|
|
tty > /home/level5/.timer/current_tty 2>/dev/null || echo "/dev/pts/0" > /home/level5/.timer/current_tty
|
|
chmod 644 /home/level5/.timer/current_tty
|
|
|
|
exec /bin/bash
|