Skip to content

Instantly share code, notes, and snippets.

@huzaifa-a
Last active November 11, 2020 09:21
Show Gist options
  • Save huzaifa-a/07d34a1f4fbe504fa6d02c4c339907a4 to your computer and use it in GitHub Desktop.
Save huzaifa-a/07d34a1f4fbe504fa6d02c4c339907a4 to your computer and use it in GitHub Desktop.
add cron job to current user by using ssh

SSH

crontab -e

#append entery by using nano editio

* * * * * cd /home/humanitixhs-user/webapps/humanitixhs && php artisan schedule:run >> /dev/null 2>&1

#1 - ^x
#2 - y
#3 - enter

Click here for cron time info

cpanel

/usr/local/bin/php /path/to/laravel/artisan schedule:run >> /dev/null 2>&1	
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment