Velid Vrabac
Velid Vrabac

Reputation: 101

How to set up cron job on CentOS

I don't know how to set up cron with ssh? I opened ssh and typed "crontab -e". What do I do then? I want to repeat the function every minute. I have this code as "cron command to run": php -f /var/www/vhosts/nf-test-host.tk/httpdocs/admin/cron/cron.php.

I am on CentOS. What should I do, exactly? Thanks in advance!

Upvotes: 10

Views: 48880

Answers (3)

Knase
Knase

Reputation: 1274

Use command:

sudo yum install vixie-cron crontabs

or look this http://shanerutter.co.uk/2011/11/23/centos-installing-cron-cronjobs-or-cron-daemon-crond/

Upvotes: 1

mlbx02
mlbx02

Reputation: 49

You can try out different timing values in the crontab sandbox. It will show you a list of run times. www.dataphyx.com/cronsandbox/.

Upvotes: 4

Jason Sjobeck
Jason Sjobeck

Reputation: 87

Here is your answer:

http://drupal.org/node/23714

(If you are not running Drupal, that is fine, this still applies equally well to you.)

Let us know.

Upvotes: 2

Related Questions