2021-12-31 15:57:34 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
RUNNING=$(pgrep todotxt-machine)
|
|
|
|
|
|
|
|
if [ "$RUNNING" ]; then
|
2023-01-06 19:41:31 +00:00
|
|
|
kill $RUNNING 2&>1 /dev/null
|
2021-12-31 15:57:34 +00:00
|
|
|
else
|
2023-01-06 19:41:31 +00:00
|
|
|
/usr/bin/xterm -e "/home/jpm/.local/bin/todotxt-machine /home/jpm/nextcloud/phone/todo.txt"
|
2021-12-31 15:57:34 +00:00
|
|
|
fi
|