How to fix Windows crashes
Last week some readers ran into a known bug where the crontab rake was not detected. There are a number of factors that can cause this problem. Let’s discuss this now.
I am working on a Ruby application and every time the script needs to run it sends emails to make sure you have different users.
The script works if you run it manually, but when you run it via cron, it gives an error with the special error “Rake: command not found”.
I’m new to all of this and I know this task will be pretty simple, although I can’t find anything on the internet about it – there are some that are close but not relatively suitable.
#! / bin / bash# USAGE - Run the rake script attached to redmine @ mycompany for redmine email problem answer center.cd via /usr/local/src/redmine-3.0.3rake -f Rakefile redmine: email: receive_imap RAILS_ENV = "production" host = imap.gmail.com port = 993 ssl = 1 [email protected]=
com --traceFolder = inboxallow_override = true
Date: Fri, Aug 21, 2015 08:23:01 GMTMessage ID: <[email protected]>Authentication X warning: ip-172-xx-xx-xxx: user ec2 identifies sender with -f. basedAuthor: root @ ip-172-xx-xx-xxx daemon)To: (cron ec2-user @ ip-172-xx-xx-xxxSubject: Cron
sh /usr/local/bin/redmine-email.shConte typenta: text / plain; Character set = UTF-8Transmitted Automatically: Generated AutomaticallyX-Cron-Env: X-Cron-Env: utf-8>x-cron-env: X-Cron-Env: X-Cron-Env: X-Cron-Env: /usr/local/bin/redmine-email.sh: Line 5: rake: Command not found
* / 1 * * * 1.sh /usr/local/bin/redmine-email.sh
I have no idea what is going on – I have no problem doing other cron jobs on another computer. I would appreciate your help, otherwise thank you very much.