Comments (12)
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.
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.
Thanks! Glad to hear you got it working!
from dispatcher.
@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.
Which crontab did you add it to? The root crontab or a specific user's crontab?
from dispatcher.
I create a cron.txt in my folder project and using crontab cron.txt
command
from dispatcher.
Which user are you running that command as? Can you also provide the contents of the cron.txt
?
from dispatcher.
This is my cron.txt
file:
* * * * * php /Users/mac/Code/myproject/artisan scheduled:run 1>> /dev/null 2>&1
from dispatcher.
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.
@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....
- Being logged in as root
- used
sudo crontab
or some othersudo
to edit/install the cron
from dispatcher.
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.
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/bashPATH=/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)
- running schedled:run from controller HOT 6
- different timings for different options of a command HOT 1
- api everyDays ? HOT 1
- Deploy on Windows. HOT 4
- --env does not get passed into the scheduled commands HOT 3
- Ask : i wanna use schedule for run php codes HOT 1
- Doesn't propagate --env flag HOT 5
- Different times in different environments HOT 2
- Hours set, will it run every minute and second? HOT 1
- php artisan schedule:summary Args/Opts column is blank? HOT 9
- removing command file causes scheduled:summary to crash HOT 1
- What sort of dependencies for Laravel does this project have? HOT 2
- Question: Laravel 5.x schedule:summary HOT 2
- Every Hours not running properly HOT 1
- [Feature] Task timeout HOT 1
- [Feature] pcntl_fork in leui of exec HOT 1
- Call to undefined method [package] HOT 1
- Class 'Orchestra\Testbench\TestCase' not found HOT 13
- Sleeping processes not being killed? HOT 5
- ERROR: exception 'InvalidArgumentException' with message 'Command "command:check" is not defined. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dispatcher.