Ruby on Rails Thursday, August 30, 2012

OS : Ubuntu 12.04


Now I use Backup and Whenever gem to backup my database.
When I run backup perform -t my_backup ,I can works.
But when I check the task crontab -l ,it as this:
0 22 * * * /bin/bash -l -c 'backup perform -t my_backup'
Run cat /etc/crontab to check my cron configuration file,it's:
SHELL=/bin/sh  PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 It's different between /bin/bash and /bin/sh ,how to do?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/1vEZmtjazLMJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment