i want to execute bash file daily at 12:30 for example to make backup to something how i can do it ?? and other one monthly ???? the operating system is Unix

link|improve this question

feedback

2 Answers

up vote 4 down vote accepted

You will have to use the cron facility to do this. In particular you will have to edit the crontab file and add a couple of entries.

To run a job daily at 12:30 you would create an entry in the crontab file like so

30 12 * * * /path/to/your/DailyBashScript

to run a job monthly for example on the 1st of the month at 20:45

45 20 1 * * /path/to/yourMonthlyBashScript
link|improve this answer
feedback

You're looking for cron.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.