Watch For Command Shell Script Link to heading
#!/bin/sh
COMMAND='ps aux | rg "docker exec.*" | rg -v "rg"'
while true; do
OUTPUT=$(eval "$COMMAND")
if [ -z "$OUTPUT" ]; then
notify-send "sqldump done!"
exit
fi
sleep 1
done
Celso Benedetti
#!/bin/sh
COMMAND='ps aux | rg "docker exec.*" | rg -v "rg"'
while true; do
OUTPUT=$(eval "$COMMAND")
if [ -z "$OUTPUT" ]; then
notify-send "sqldump done!"
exit
fi
sleep 1
done