Closed Benjamin-Loison closed 4 months ago
while [ 1 ]
do
date
sleep 1
done
has a varying PID.
date
sleep 10
date
tail --pid=PID -f /dev/null; date; matrix-commander -m 'Process finished!'
matrix-commander() {
MESSAGE=`python3 -c "import urllib.parse as ul; print('message=' + ul.quote_plus(\"$1\"))"`
KEY=CENSORED
curl -G -s 'https://lemnoslife.com/BEN/notify.php' -d $MESSAGE -d "key=$KEY"
unset KEY
}
grep -m 1 KEY /var/www/html/BEN/notify.php
matrix-commander 'Process finished!'
Related to Benjamin-Loison/waydroid/issues/16.