Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #check if we are already running
- running=$(ps aux | /usr/bin/grep -i "usb_sync" | /usr/bin/grep -v grep | /usr/bin/grep -c bash)
- echo "usb_sync $running" >/opt/local/backup/usb_sync_log
- #If we are, the quit
- if [ $running -gt 1 ] ; then
- exit 0
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement