Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- while true
- do
- if ps ax | grep -v grep | grep "connect.php"
- then
- echo "process is running..."
- else
- clear
- date
- echo "process not running, relaunching..."
- php connect.php
- fi
- sleep 10
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement