#!/bin/bash
echo "Please enter the process ID to monitor:"
read PID
while [ -e /proc/$PID ] ; do
sleep 1 # chage it to 30 or any other time in seconds (600 seconds=10 minutes!)
done
echo "Process done" | mail -s "process finished" jaime.santos@tradition.com
