Created
October 15, 2010 16:01
-
-
Save drocamor/628438 to your computer and use it in GitHub Desktop.
run some jobs once a day, at 4:20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/bin/pizza_party -ogvthxdpswbeczu 5 large thin # Order some pizzas |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mrinaudo: By virtue, all clarity is lost @16:20, regardless of comment verbosity.