@@ -37,28 +37,23 @@ GMAIL_PASSWORD=password
3737```
3838
3939For Ruby scripts you need to install gems:
40- ` gem install dotenv twilio gmail whenever `
40+ ` gem install dotenv twilio gmail `
4141
4242## Cron jobs
4343
4444``` sh
45- # Runs `smack_my_bitch_up ` daily at 9:20 pm.
46- 20 21 * * * /bin/bash -l -c ' ruby smack_my_bitch_up.rb '
45+ # Runs `smack-my-bitch-up.sh ` daily at 9:20 pm.
46+ 20 21 * * * /path/to/scripts/smack-my-bitch-up.sh >> /path/to/smack-my-bitch-up.log 2>&1
4747
48- # Runs `hangover` daily at 8:45 am.
49- 45 8 * * * /bin/bash -l -c ' ruby hangover.rb '
48+ # Runs `hangover.sh ` daily at 8:45 am.
49+ 45 8 * * * /path/to/scripts/hangover.sh >> /path/to/ hangover.log 2>&1
5050
51- # Runs `kumar_asshole ` every 10 minutes.
52- 0,10,20,30,40,50 * * * * /bin/bash -l -c ' ruby kumar_asshole.rb '
51+ # Runs `kumar-asshole.sh ` every 10 minutes.
52+ * /10 * * * * /path/to/scripts/kumar-asshole.sh
5353
54- # Runs `fucking_coffee` hourly from 9am to 6pm.
55- 0 9,10,11,12,13,14,15,16,17,18 * * * /bin/bash -l -c ' ruby fucking_coffee.rb'
56-
57- # Runs `hangover.sh` daily at 8:45am with logfile output.
58- 45 8 * * * /bin/bash -l -c ' /path/to/scripts/hangover.sh >> /path/to/hangover.log 2>&1'
54+ # Runs `fucking-coffee.sh` hourly from 9am to 6pm.
55+ 0 9-18 * * * /path/to/scripts/fucking-coffee.sh
5956```
6057
61- Check ` config/schedule.rb ` file.
62-
6358---
6459Code is released under WTFPL.
0 commit comments