CC Chen wrote in post #1039530:
> Hi all,
>
> I used crontab command such as
> "*/5 * * * * /usr/local/bin/ruby /local/myuser/rubyscript/script1.rb"
>
> But it can't execute script1.rb, I let it print some message every 5
> min.
>
> I also changed script1.rb to chmod 755.
>
>
> Does the crontab command is right?
>
>
>
> Thanks.


I write a script which it can link to ftp server and to download files.

I also used this command
"*/5 * * * * /usr/local/bin/ruby  /local/myuser/rubyscript/ftpscript.rb 
>> /local/myuser/rubyscript/ftplog.txt"


It just can dump ftplog.txt file but it can't download any file from the 
ftp server.



What should I do??



Thanks,

-- 
Posted via http://www.ruby-forum.com/.