Mobile app version of vmapp.org
Login or Join
Megan663

: 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

@Megan663

Posted in: #Cpanel #Cron

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.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Megan663

2 Comments

Sorted by latest first Latest Oldest Best

 

@Angie530

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).

10% popularity Vote Up Vote Down


 

@Shelley277

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme