-1

How to install new crontab using linux cent os? I was runed crontab -r by mistekaly, so file was deleted. If i create new file usinng crontab -e and try to save and exit then below error return is return:

errors in crontab file, can't install.
How to create new crontab file?

2
  • There is an error in the crontab file, but we can't see it. Commented Mar 11, 2019 at 13:10
  • But file was deleted by crontab -r. Commented Mar 11, 2019 at 13:11

1 Answer 1

-1

From install crontab the crontab package in CentOS is vixie-cron. Hence, do install it with:

Install the package and dependencies

#yum install vixie-cron

Enable the package on boot and start

# /sbin/chkconfig crond on

# /etc/init.d/crond start
1
  • Is this up to date? the link points to a page written in 2013.
    – Florian
    Commented Jul 19 at 7:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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