Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hello,
I’m running an Ubuntu 16.10 x64 and have deployed the php Framework Laravel 5.3.28 on the server.
For the most part everything is working as normal however I’m trying to get the crontab to call artisan commands like php artisan schedule:run so that laravel’s task scheduler can be put to use.
I do not wish to download any extra packages to make this work as I feel there shouldn’t really be a need to since the cron can call, what looks like, any command if properly coded.
What I’m trying to do:
From within the crontab -e I’m trying to properly write the Ubuntu correct way to call php artisan schedule:run
What I’ve done: I’ve currently tried multiple different ways of writing this command and nothing is working as noted below:
#Attempt for cron
SHELL=/bin/bash
#PATH=???? <--- Confused if this is even necessary
* * * * * php /path/to/artisan scheduled:run 1>> file.log 2>&1
* * * * * /path/to/ php artisan scheduled:run 1>> file.log 2>&1
* * * * * /path/to/ php artisan scheduled:run >> file.log
* * * * * /path/to/ php artisan scheduled:run 1>> file.log
* * * * * /path/to php artisan schedule:run
* * * * * /usr/bin/php /var/www/artisan scheduled:run 1>> file.log
I’ve gone to multiple resources to try and find the answer but nothing seems to be the answer to my specific problem.
Resources:
Conclusion: At this point I’m stuck beyond stuck. Can someone please help me? All I’m trying to do is call the php artisan command using Ubuntu’s cron and I don’t know the exact way to do it. ANY and all assistance is greatly appreciated.
Thanks in advance,
Happy Holidays!!
gerard
Jon Harris
orbitstorm88
rem3n
yolanda smith
301276acdc124dd982fe86364ba8c4
30ddab6038c044188d489290785dcb
699c9bc0a2c34f248e792cb8d2c6ab
Kent Morlan
sylvaticus
agitechcr
8b8f3c8ea96345bf8ddb0a59a008e2