From: ahoward Date: 2003-03-22T05:04:52+09:00 Subject: Re: ruby and cron help On Fri, 21 Mar 2003, Mark Probert wrote: what happens if you replace timestamp.rb and blah.rb with their absolute paths? you could try changing > /usr/local/bin/ruby blah.rb > ~/tmp/blah.out to > /usr/local/bin/ruby blah.rb and see what cron mails you. -a > Hi, rubyists. > > I think this is more a cron rather than a ruby problem. > However, I am stumped. > > I am running ruby 1.6.8 under Solaris 6. > > wcary3zg:~/src/ruby/utils% crontab -l > 0,15,30,45 * * * * /opt/home/mark/bin/blah > > wcary3zg:~/src/ruby/utils% cat ~/bin/blah > #! /usr/local/bin/zsh > cd ~/src/ruby/utils > /usr/local/bin/ruby timestamp.rb > ~/tmp/timestamp.out > /usr/local/bin/ruby blah.rb > ~/tmp/blah.out > > timestamp.rb contains "puts Time.now" just to show that > ruby is working ok. blah.rb is the application I am > really interested in. Running "blah" from the command > line works fine. It fails to work from cron, though > the command is executed (from /var/cron/log) and the > timestamp.out file is updated. > > Any ideas? > > -- > -mark. > > ---------------------------------------------------- > Mark Probert probertm@NOSPAM_nortelnetworks.com > Nortel Networks ph. (613) 768-1082 > ---------------------------------------------------- > > All opinions expressed are my own and do not > reflect in any way those of Nortel Networks. > -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================