How to create cronjob in Centos 7

in #centos76 years ago

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

Sort:  

Congratulations @iphuong! You received a personal award!

1 Year on Steemit

Click here to view your Board of Honor

Do not miss the last post from @steemitboard:

Saint Nicholas challenge for good boys and girls

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @iphuong! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!