Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Slackware Linux Help
Reload this Page seek for your kidness
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Slackware Linux Help For help and Discussion about Slackware linux

Reply
 
Thread Tools Display Modes
Old 12-18-2007   #1 (permalink)
m.galala
Just Joined!
 
Join Date: Dec 2007
Posts: 7
seek for your kidness

Dear all;
i would appreciate if you find me work around on this. i accidentally over wrote my crontab file "default one" and lost all the scheduled tasks that were existing before. let me explain what exactly i did:

1- i create my own file using vi and add a task for pinging our main server. the file path was under /home/username/mycronjobs/

2- i applied crontab /home/username/mycronjobs/filename

3- i realized that i lost all the cronjobs (that by default was installed under /var/spool/cron/crontabs) that was set by my colleague. it seems like i over wrote the old cronjobs.

please; help me on this as i need those cron jobs again on my system

thanks;
m.galala is offline   Reply With Quote
Old 12-18-2007   #2 (permalink)
peteh
Linux Newbie
 
peteh's Avatar
 
Join Date: Oct 2006
Location: UK
Posts: 220
Look in /var/spool/cron and see if your old file was backed up. It would be in the format "filename ~" or "filename.bak" or similar.
If not then you may have to set it up again. That shouldn't be too difficult if you know which tasks were set.
__________________
Pete
Linux user #438831
peteh is offline   Reply With Quote
Old 12-22-2007   #3 (permalink)
m.galala
Just Joined!
 
Join Date: Dec 2007
Posts: 7
Thanks Peteh for your fast response. It had to re-write 20 lines again.i appreciate the importance of backing up anything before making silly changes
m.galala is offline   Reply With Quote
Old 12-22-2007   #4 (permalink)
peteh
Linux Newbie
 
peteh's Avatar
 
Join Date: Oct 2006
Location: UK
Posts: 220
If you want to edit cronjobs in the future, use "crontab -e" in a console - never edit the cron file directly.
Crontab -e opens the file specifically to edit. You can add any lines and save & quit or just quit if you don't want to save the changes.
__________________
Pete
Linux user #438831
peteh is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
illegal seek bijucnair Redhat / Fedora Linux Help 0 07-01-2006 09:48 AM
[FTP] 435 Can't build data connection: Illegal seek. ledd_man Debian Linux Help 0 07-20-2005 09:42 PM
IBM Deskstar 40gb seek timeout error Anonymous Installation 4 11-18-2002 03:51 PM




All times are GMT. The time now is 04:45 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0