I’m using CentOS 7.
I want to run my laravel commands:
* * * * * cd /home/path/ && php artisan schedule:run >> /dev/null 2>&1
but when I run above code I got this error message:
-bash: cpanel3-skel: command not found
I’m using CentOS 7.
I want to run my laravel commands:
* * * * * cd /home/path/ && php artisan schedule:run >> /dev/null 2>&1
but when I run above code I got this error message:
-bash: cpanel3-skel: command not found
2
Answers
You have to add this cron entry to your crontab, not to run it as a command. On CentOS, open crontab on text editor using following command:
Then add your cron entry
* * * * * cd /home/path/ && php artisan schedule:run >> /dev/null 2>&1
to the end of the file and save the changes.Go to your terminal, ssh into your server, cd into your project and run this command.
This will open the server Crontab file, paste the code below into the file, save and then exit.
Now if you want to check the list of cron that are currently running use below command.