######### To Run Ruby Script Manual#########
/home/path/of/ruby/script ruby script.rb
########## To Run Ruby Script With Cronjob ##########
crontab -e
-------------------
RAILS_ENV=production
*/5 * * * * /bin/bash -l -c 'cd /home/path/of/ruby/script && ruby script.rb'
*p/s make sure script.rb file executeable without any permission denied.can use chmod +x..
No comments:
Post a Comment