Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

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
share|improve this answer
add comment

You're looking for cron.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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