• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

Cron jobs

I want to reboot the services of Redhat 7.2 every 6:00a.m. How can I setup the crontab?
0
kennycpu
Asked:
kennycpu
1 Solution
 
ahoffmannCommented:
to edit the crontab (as user of your choice):

   crontab -e

here you simply add the command to "reboot the service"

For details see
   man crontab
   man 5 crontab
0
 
websolutionCommented:
boot as root
run:
crontab -e

usually crontab use vi
so press: <$> then <G> to go to the last line
press <o> to open a new line under the last line

enter:
0 6 * * * /sbin/reboot

press <ESC> key to return to the editor command mode

to save it, enter:
:wq

that's it.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now