a script to check if processes are running at login