Solved

Cron jobs

Posted on 2002-06-06
2
297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7058725
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
ID: 7065979
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Mailserver setup & redundancy 2 83
AWS Central Authentication 1 103
AWS EC2 HTTP & HTTPS 2 79
Remove Resilio directory from Netgear ReadyNAS 212 via SSH. 2 68
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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