: Help with cron syntax I need to setup a cronjob on my webhost. The documentation for my webapp reads as follows: you will need to create following cronjob: /public_html/cake/console/cake
I need to setup a cronjob on my webhost.
The documentation for my webapp reads as follows:
you will need to create following
cronjob: /public_html/cake/console/cake
-app /public_html/app master
Also, I want any output written to a log file. My hosts documentation says this:
You can have cron send an email
everytime it runs a command. If you do
not want an email to be sent for an
individual cron job you can redirect
the command's output to /dev/null like
this: mycommand >/dev/null 2>&1
I don't know the syntax to implement this from a cron job.
More posts by @Megan663
2 Comments
Sorted by latest first Latest Oldest Best
Check out this guide for Crontab Syntax and this tutorial to disable crontab mail (there are a couple of options in the tutorial to disable cron from emailing you the script output).
Based on the screenshot that you posted, you just need to know the correct path of the command that you are trying to run. It's possible that you just need to remove the leading '/' from your command and the path that you specify after -app. This assumes that your host sets up the cronjob to run as your user and that your public_html directory has its root in your home directory.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.