cron job time code example

Example 1: cronjob set time

Min
Hour
Day of Month
Month
Day of Week

// * * * * * cd /Applications/MAMP/htdocs/project_name && Console/cake SendEmail staging
// Example
// 0 23 * * * cd /Applications/MAMP/htdocs/project_name && Console/cake SendEmail staging

Example 2: cron job when out of time

Cron job invocations begin to overlap
Cron will run your command at the scheduled time even if the last invocation is still running, or even if the last 10 are. If your job invocations are close to overlapping, consider spacing them out further or adding a tool like flock to ensure only 1 instance is running.