Solved

Cron jobs

Posted on 2002-06-06
2
261 Views
Last Modified: 2010-04-20
I want to reboot the services of Redhat 7.2 every 6:00a.m. How can I setup the crontab?
0
Comment
Question by:kennycpu
2 Comments
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
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
 
LVL 1

Accepted Solution

by:
websolution earned 50 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now