while ps -p 5637 >/dev/null; do sleep 5;done; echo "done"| mail -s foo # Notification when pid 5637 done

@climagic i can't wait to finally use this when i have a pid 5637 on my system

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!