Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #check if we are already running
  4. running=$(ps aux | /usr/bin/grep -i "usb_sync" | /usr/bin/grep -v grep | /usr/bin/grep -c bash)
  5. echo "usb_sync $running" >/opt/local/backup/usb_sync_log
  6. #If we are, the quit
  7. if [ $running -gt 1 ] ; then
  8. exit 0
  9. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement