From: Daniel Berger Date: 2005-09-24T04:05:45+09:00 Subject: Re: net/ftp works manually, fails via cron Jamey Cribbs wrote: > Daniel Berger wrote: > >> Hi all, >> >> Ruby 1.8.2 >> Solaris 10, Linux 2.6.8 >> >> I'm experiencing something odd with net/ftp. When I run the following >> snippet manually it works fine. Running the same snippet under cron >> seems to fail. >> >> I don't get any messages in the log file. No indication whatsoever >> that there was a problem. It's just that...nothing happens. There is >> no file transfer as far as I can see when run via cron. >> >> Any ideas? >> > Some questions: > > Did you add it to the root user's crontab or your user account's crontab? > > When you run it manually and it works, are you running it as root or as > yourself? > > In the crontab, did you specify the absolute path to both the ruby > interpreter and to your script file? Nope, whoops, that was it. I think I goofed the crontab, too, which is why I got no error message. Sorry for the noise. Dan