I’ve been trying to set up a Ruby script as a chron job with no success. I suspect I’m getting the paths to Ruby and/or the script wrong. Could someone tell me exactly what each full pathname should be? Thanks.
More info. Here’s the notification I get back when I turn on e-mailed output:
/usr/bin/ruby: Permission denied – /home/myname/mydomain.com/cgi/test.rb (LoadError)
Which permission don’t I have? To run ruby, or to load test.rb? The permissions bits for the cgi folder and the script are both 711.
When I launch test.rb manually, it works fine.
Problem solved. I chose a user that didn’t have access to the folder where the script lived. (I didn’t realize that each user only has access to its own directory hierarchy.)