Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Running oil with crontab "Could not open input file: oil" error
  • Hi,

    I have setup simple test crontab to run FuelPHP's task that I have created. If I run this task from server's command line it works as expected. But when I run the same oil command from crontab I get this error: Could not open input file: oil

    My crontab is like this:

    * * * * * php oil refine taskmanager


  • HarroHarro
    Accepted Answer
    You have to prefix oil with the path, or make sure your command changes the current directory.
  • And you were once again right. Thanks! Prefixing oil with absolute path fixed the problem.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion