blocklife avatar

How to create cronjob in Centos 7

iphuong

Published: 09 Jul 2018 › Updated: 09 Jul 2018How to create cronjob in Centos 7

How to create cronjob in Centos 7

1. update all your system software to the latest version available

$ sudo yum update

2. Verify if cronie package is installed

$ sudo rpm -q cronie

3. Install cronie package

$ sudo yum install cronie

4. Check if crond service is running

$ sudo systemctl status crond.service

5. Configure cron jobs

$ sudo cat /etc/crontab

configure crontab

6. Create cronjob for current user

$ sudo vi /var/spool/cron/iphuong
crontab example

6. Restart the crond service

$ sudo systemctl restart crond.service

Leave How to create cronjob in Centos 7 to:

Written by

Read more #centos7 posts


Best Posts From blocklife

We have not curated any of iphuong's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From blocklife