@@ -37,28 +37,23 @@ GMAIL_PASSWORD=password
37
37
```
38
38
39
39
For Ruby scripts you need to install gems:
40
- ` gem install dotenv twilio gmail whenever `
40
+ ` gem install dotenv twilio gmail `
41
41
42
42
## Cron jobs
43
43
44
44
``` 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
47
47
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
50
50
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
53
53
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
59
56
```
60
57
61
- Check ` config/schedule.rb ` file.
62
-
63
58
---
64
59
Code is released under WTFPL.
0 commit comments