Files
TermuxSmsGateway/smsquitto-install/smsquitto-status
T
2021-04-15 15:12:43 +02:00

7 lines
287 B
Bash

#!/data/data/com.termux/files/usr/bin/bash
PID=$(ps -aux | grep smsquittod | grep -v grep | awk '{print $2}')
if [ -z $PID ]; then
echo "Service smsquittod is not running"
else
termux-notification --sound --title "Smsquitto" --content "Service smsquittod is running pid: $PID"
fi