I have a centos server and I want to run a job on it at 11PM every 2 days, how do I do that?
You can use the following cron arrangement. The fields denote (from left-to-right):
In general, you need to use crontab to define the task and the run schedule.
This will put you in VI editing root's crontab entry. Then as ewwhite says, enter:
and then [^ESC] ZZ to save the changes.
This is a good first attempt, but this is not quite every alternate day, as it will run on the 30th of the month and then next run on the 2nd of the month. If you really do need it to be every 2nd day, then run the script EVERY night.
and in the start of the script use
This uses a text file to force the script to exit every alternate invocation.