Forum Moderators: bakedjake
1. How do I specify a specific time for a cron job to run? For example, to run at 10:30 AM every day?
2. If I have a cron job that is set to run every day, but without any time specified, what time will the job actually run?
Thanks,
Ron
If I set the cron to run daily, I would use the "*". My question is, when does the job actually run? For example, does it run at midnight?
which column are you putting the "*" in?
if it's in the 3rd and/or 5th columns it will run every day of the month and/or every day of the week.
the time(s) it runs depends on what's in the 1st and 2nd columns...
I also tried: 0 15 * * *
to run the job every day at 15:00 hours. But for some reason the job did not run.
I wasn't sure if I have to specify an actual time to run a cron job daily. If I want a job to run daily, do I still need to specify a an actual time for the job to run?
Thanks,
Ron
At first, I had the following:
0 0 * * *
to run the job every day of the week/month without a specific time.
00:00 is a specific time.
this means run every day at midnight.
I also tried: 0 15 * * *
to run the job every day at 15:00 hours. But for some reason the job did not run.
this should have worked.
did you try a simple command?
I wasn't sure if I have to specify an actual time to run a cron job daily. If I want a job to run daily, do I still need to specify a an actual time for the job to run?
yes.