11

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!

David Osborne
  • 6,436
  • 1
  • 21
  • 35
Velid Vrabac
  • 111
  • 1
  • 1
  • 4

3 Answers3

4

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

mlbx02
  • 49
  • 2
2

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.

1

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/

Knase
  • 1,224
  • 14
  • 23