Skip to content

Instantly share code, notes, and snippets.

@parsibox
Created July 4, 2019 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parsibox/58d547f920a89e74cf06d2a2d6663f49 to your computer and use it in GitHub Desktop.
Save parsibox/58d547f920a89e74cf06d2a2d6663f49 to your computer and use it in GitHub Desktop.
cronjob command
list
crontab -l | grep sms
add
echo "* * * * * cd /var/www/html/core/cron/;/usr/bin/php70 xxxx.php >/dev/null 2>&1 " >> /var/spool/cron/root
remove
crontab -l | grep -v 'sms' | crontab -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment