sig_UVa
June 6th, 2006, 10:40 PM
So I have a ruby script that works when I run ruby auto_sync.rb from the /var/www/quickbase/sae_sync/ directory
I want to run this as a cron so I use crontab -e and add the text below:
*/5 * * * * /var/www/quickbase/sae_sync/ruby auto_sync.rb
I get
/bin/sh: /var/www/quickbase/sae_sync/ruby: No Such File or Directory
If I remove the ruby command and do:
*/5 * * * * /var/www/quickbase/sae_sync/auto_sync.rb
I get
/bin/sh: /var/www/quickbase/sae_sync/auto_sync.rb: Permission Denied
in my log.
Any ideas? I appreciate the help!
I want to run this as a cron so I use crontab -e and add the text below:
*/5 * * * * /var/www/quickbase/sae_sync/ruby auto_sync.rb
I get
/bin/sh: /var/www/quickbase/sae_sync/ruby: No Such File or Directory
If I remove the ruby command and do:
*/5 * * * * /var/www/quickbase/sae_sync/auto_sync.rb
I get
/bin/sh: /var/www/quickbase/sae_sync/auto_sync.rb: Permission Denied
in my log.
Any ideas? I appreciate the help!