A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/postmodern/chruby/wiki/Cron below:

Cron · postmodern/chruby Wiki · GitHub

chruby can be used to switch Rubies for specific cron jobs.

Note: chruby-exec must be accessible via PATH, SHELL must be set and chruby must be loaded by the shell.

/etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
MAILTO=root

30 18 * * *   chruby-exec 1.9.3 -- /path/to/script
crontab -e

You can also use chruby in user-specific crontabs:

SHELL=/bin/bash
HOME=/home/deploy
PATH=/bin:/usr/bin:/usr/local/bin

30 18 * * *   chruby-exec 1.9.3 -- /path/to/script

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4