Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # cronicd - run some jobs once a day, at 4:20
- # Sleep every minute until it is 4:20
- while true; do
- if [ `date +%H:%M` eq '16:20' ]; then # Military time bro
- # Run the jobs s l o w l y
- cat /etc/cronicdtab | while read job; do
- nice -n 19 $job
- done
- # Better take a break after running those jobs
- sleep 60
- else
- # Time to take a break
- sleep 60
- fi
- done
Add Comment
Please, Sign In to add comment