Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-17-2008, 01:22 AM
|
#1
|
|
LQ Newbie
Registered: Mar 2005
Location: Sydney
Distribution: Suse, Ubuntu
Posts: 5
Rep:
|
replaced crontab, now should get crontab back to what it was
Hi all,
I was trying to learn how crontab works. I made a file with an echo command in it and used crontab -u root myfile.
The problem is that when i checked crontab -l i saw that all other jobs were gone and there only was myfile. I used crontab -r in hope that after removing it'll be back to its before jobs. But now when i use crontab -l it says 'no crontab for root'. I tried service crond restart, but no change. How can i get it back to the way it was? Though i had no idea what jobs it had. This is very urgent as i did on an important server.
Thanks for the help in advance.
Ramin.
|
|
|
|
10-17-2008, 05:50 PM
|
#2
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Do you have a backup?
Look for /var/spool/cron/root
|
|
|
|
10-20-2008, 07:15 PM
|
#3
|
|
LQ Newbie
Registered: Mar 2005
Location: Sydney
Distribution: Suse, Ubuntu
Posts: 5
Original Poster
Rep:
|
Yes, it was there  and i used it to restore crontab.
Thank you so much for great help.
Ramin.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:46 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|