Let's see how they play
- Install Ruby (see http://rvm.io)
- curl ...
- rvm install ruby
- Create .env
- copy the example and then edit
cp .env.example .env $EDITOR .env
- add your partner key
- Load the environment file:
. .env
- Make sure env is setup
- Make the scripts executable. eg.
chmod +x run_night_job
- Run it
ruby xxx.rb
or create cronjob (see below)
To run a single deck do RUN_SINGLE=true ruby good_magic_code.rb
Add a cron job
- run
crontab -e
(under the user to run the code) - Add this entry:
0 3 * * * /home/veggie/src/good_magic/run_night_job
To see the current cron jobs run: crontab -l
To get help type man 5 crontab