Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just installed to my server. I wonder what cron job command should be to run it everyday ?

Note: i will set cron job from Cpanel

Path to script is: /home/username/

Thanks in advance

share|improve this question
up vote 1 down vote accepted
0 0 * * *  /home/username/

This will run the job every night at midnight.

Here's what that job would look like in cpanel:

cPanel cron configuration

share|improve this answer
didnt work. it works when i execute it from SSH but with cron it didnt work :( – Utku Dalmaz Oct 7 '10 at 22:51
by the way, i set cron from CPANEL, not from SSH – Utku Dalmaz Oct 7 '10 at 22:52
I've edited my answer with a screenshot from cpanel. – EEAA Oct 8 '10 at 0:39

On my Ubuntu 10.04 LTS server, included a cronjob. This is what it looks like. It's very simple.

$ cat /etc/cron.daily/automysqlbackup
test -x /usr/sbin/automysqlbackup && /usr/sbin/automysqlbackup

So, automysqlbackup runs as part of the Daily cronjobs. The schedule for the daily cronjobs can be seen in /etc/crontab.

share|improve this answer

Your Answer


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.