Coder Social home page Coder Social logo

Comments (12)

bkuhl avatar bkuhl commented on July 23, 2024

Did you add this command via sudo crontab -e ?

When you say it's not firing, how are you verifying it's not firing? It may be an issue with the command you're trying to schedule.

from dispatcher.

jimmck avatar jimmck commented on July 23, 2024

Hi Ben
I need to set path in cron file. It was not finding PHP. Great work by the
way! All is good. Thanks for the follow up.
Jim
On Aug 24, 2014 3:09 PM, "Ben Kuhl" [email protected] wrote:

Did you add this command via sudo crontab -e ?

When you say it's not firing, how are you verifying it's not firing? It
may be an issue with the command you're trying to schedule.


Reply to this email directly or view it on GitHub
#67 (comment).

from dispatcher.

bkuhl avatar bkuhl commented on July 23, 2024

Thanks! Glad to hear you got it working!

from dispatcher.

phuclh avatar phuclh commented on July 23, 2024

@jimmck I has same problem with you. The command works when I run it in terminal but crontab not fires. Please help me.

from dispatcher.

bkuhl avatar bkuhl commented on July 23, 2024

Which crontab did you add it to? The root crontab or a specific user's crontab?

from dispatcher.

phuclh avatar phuclh commented on July 23, 2024

I create a cron.txt in my folder project and using crontab cron.txt command

from dispatcher.

bkuhl avatar bkuhl commented on July 23, 2024

Which user are you running that command as? Can you also provide the contents of the cron.txt?

from dispatcher.

phuclh avatar phuclh commented on July 23, 2024

This is my cron.txt file:

* * * * * php /Users/mac/Code/myproject/artisan scheduled:run 1>> /dev/null 2>&1

from dispatcher.

jimmck avatar jimmck commented on July 23, 2024

Hi,

I had to put the path in my cron file. Once done done, all works fine.
MAC OSX, Laravel 4, PHP 5.6.3

Here is my file:

SHELL=/bin/bash
PATH=/Applications/:/Applications/XAMPP/xamppfiles/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

  • * * * * php /Users/jimm/WebProjects/laravel42/artisan scheduled:run 1>>
    /dev/null 2>&1

Regards,
Jim

On Sat, Jan 10, 2015 at 2:34 PM, phuclh [email protected] wrote:

This is my cron.txt file:

  • * * * * php /Users/mac/Code/myproject/artisan scheduled:run 1>>
    /dev/null 2>&1


Reply to this email directly or view it on GitHub
#67 (comment).

from dispatcher.

bkuhl avatar bkuhl commented on July 23, 2024

@phuclh Which crontab did you setup that cron on? If it's on the root crontab then that cron command is invalid and will not run. It's on the root crontab if you added while either....

  1. Being logged in as root
  2. used sudo crontab or some other sudo to edit/install the cron

from dispatcher.

phuclh avatar phuclh commented on July 23, 2024

I edit my cron.txt file like:
SHELL=/bin/bash
PATH=/Applications/:/Applications/XAMPP/xamppfiles/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

  • * * * * php /Users/mac/Code/myproject/artisan scheduled:run 1>> /dev/null 2>&1

And It fired :D.

Thank you very much @jimmck @bkuhl

from dispatcher.

jimmck avatar jimmck commented on July 23, 2024

Cool !!! Enjoy!

Jim

On Sat, Jan 10, 2015 at 2:59 PM, phuclh [email protected] wrote:

I edit my cron.txt file like:
`SHELL=/bin/bash

PATH=/Applications/:/Applications/XAMPP/xamppfiles/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

  • * * * * php /Users/mac/Code/myproject/artisan scheduled:run 1>>
    /dev/null 2>&1`

And It fired :D.

Thank you very much @jimmck https://github.com/jimmck @bkuhl
https://github.com/bkuhl


Reply to this email directly or view it on GitHub
#67 (comment).

from dispatcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.