How do i add 2 cron for Fedora ami in AWS, where i need to run one cron twice a day and other one would be if data is added to the DB.
Pleas guide me from the begging coz this cron concept and the handling it is new for me
closed as not a real question by Shane Madden♦, Michael Hampton♦, kce, mdpc, Khaled Jan 31 '13 at 7:42
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.
For the first task, enter
so the script it run at 00:00 and 12:00.
For the second case, remember that cron is a scheduler. You need to know what time to run it at. So basically you cannot cron it unless you know exact time when it should run. If you do, add it like in my example as a second line.
See more about crontab syntax for example from here: http://www.manpagez.com/man/5/crontab/
I would suggest looking at this blog post too which should get you up to speed quickly with the concepts around cron and how it works.