Guest User

Untitled

a guest
Nov 24th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. process=firefox
  4. pgrep $process 1> /dev/null
  5. if [ $? -ne 0 ]
  6. then
  7. exec $process
  8. else
  9. echo "process is already running"
  10. fi
Add Comment
Please, Sign In to add comment