Slackware :: Deleted Crontab By Mistake?
Oct 24, 2010
I was accessing my box externally (ssh) and accidentally deleted my crontab. I never used crontab before and issued the command "crontab -d" instead of "crontab -e" to edit and add my cronjobpretty useless because I had no back up of my crontab of course First question, is there going to be any direct issue on my box because of the crontab being erased ? (I am assuming so but do not know what type of problems..) Lastly, would I be lucky enough so that there is a way to recover my crontab ? (having gone through Google and whatnote, I doubt it)
View 10 Replies
ADVERTISEMENT
May 30, 2011
had upgraded from slackware 13 to 13.1 and finally 13.37.After this I noticed that 'dmesg' could only be executed as root. So inorder for a user to execute 'dmesg' I executed 'ln -s /bin/dmesg /usr/bin/dmesg'.What happened next is the symlink was created but the dmesg executable was deleted.I do not want to reinstall the OS (very time consuming on a P3 with 512MB RAM) so I want to know which package provides dmesg so that I can reinstall it.The dmesg man page indicated that klogd will provide the package but then when I reinstalled it it was a no go.
View 7 Replies
View Related
Aug 25, 2010
Environment: Ubuntu 9.10 Karmic, 64 bit I was doing some maintenance on the machine and tried to delete everything under /var/lib/hudson. By mistake, I deleted everything under /var/lib. I know, I know, I must have taken an extra dose of stupid pills. Questions: Is there any way to recover without a full rebuild of the machine? Could I install Karmic to a VM, install all the same packages, and then copy over the /var/lib directory? Maybe a better question to start off is, which directories need attention (and what type) and which directories are not needed? Very soon before the delete, I did a directory listing in /var/lib. Here is what was in there:
[Code]....
View 5 Replies
View Related
Jan 15, 2011
By mistake i deleted the /usr/bin/dpkg.exe file.Now i am unable to install anything .when i tried to install ssh i got the following error message. Reading package lists.DoneBuilding dependency tree Reading state information... Doneopenssh-server is already the newest version.openssh-client is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 386 not upgraded.2 not fully installed or removed.After this operation, 0B of additional disk space will be used.Could not exec dpkg!E: Sub-process /usr/bin/dpkg returned an error code (100)
View 14 Replies
View Related
Mar 29, 2010
I was trying to sort out some problems I was having with synaptic and in a <sarcasm>slash of brilliance</sarcasm> I renamed my libc.so.6 to something else. Since then any command I type throws up:Code:apt-get: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directoryI can't get anything done. Nautilus/package manager/nothing fires up.
View 1 Replies
View Related
Mar 26, 2010
I cannot boot into by Ubuntu 9.1 machine.... Trying either GUI or rescue mode gives me the following error messages (which i copied by hand since they were in cli)
Code: mount : mounting /dev/disk/by-uuid/64e5cb0d-058a-4a4c-af4b-7afb6427a72e3 on root failed : invalid argument
mount : mounting /sys on /root/sys failed : no such file or directory
mount : mounting /dev on /root/dev failed : no such file or directory
mount : mounting /proc on /root/proc failed : no such file or directory
Target doesnt have /sbin/init The only thing i remember doing before this is deleting some bootloader files... but they were on another disk so I didn't think that it would affect my ubuntu install. Guess I was wrong how I can recover my system?
View 2 Replies
View Related
May 23, 2010
I was playing around with the default panel that has the power icon (wrong lingo maybe) and the network/sound icons, etc.I deleted some items including the power icon and now for the life of me can't find it in the panel applets list in lubuntu.Is there a way to restore the default panel with the settings as when I first installed lubuntu.I also played with some spacings and other settings so would rather just get it back to normal/restore it vs add all the items back on and then play with the spacings again.
View 9 Replies
View Related
Aug 25, 2010
Had problems with internet and deleted this by mistake now how do I get it back? note that I have no internet access so I cannot use Synaptic.
View 1 Replies
View Related
May 29, 2010
I made this same mistake installing 13.0 several months ago and fixed it back then by trying different things,but I still don't understand why.So here's what I did this time to screw up with 13.1:-Partitioned the hard drive to have /boot partition at sda1 of type ext2 (root partition is at sda3)-manually configured LILO and chose to install bootloader to the MBR-went into that 'add linux' option in the LILO menu and pointed it to sda1When I try to boot slackware 13.1 I get a kernel panic. I'm sure the answer must be obvious but I don't find LILO very easy to understand. What did I do wrong and what should I do to fix this?
View 6 Replies
View Related
Apr 27, 2010
I am using Linux 64 bit Redhat Linux. I am trying to setup simple crontab as follow...1. Edited crontab file using crontab -e2. Listed the file once to verify it using crontab -l. This will display as.. 18 5 * * 2-3 ksh $HOME/testScript.sh > $HOME/testscript.out3. Logged in a root and restarted cron deamon using "/etc/init.d/crond restart"As per my understanding now my testScript should start running at 5:18 am Thuesday
View 3 Replies
View Related
Feb 24, 2011
I was adding rxvt-unicode to the termcap file and i kinda did:
Code:
infocmp -C rxvt-unicode > /etc/termcap
instead of:
[code]....
View 2 Replies
View Related
May 31, 2010
I am trying to setup a cron job using crontab entry like this 6,16,26,36,46,56 * * * * /usr/bin/fetchmail -k>/dev/null 2>&1 But nothing is happening This is the first time I have attempted using cron as I have settup mutt for my email which is now working great but I would like to have the mail collected every 10 mins The file is saved as mailcron in my /home folder. When i run crontab -l its listed ok but no mail is appearing in mutt.
View 10 Replies
View Related
Dec 28, 2010
I have this Maxtor USB external HDD which I mount via dolphin-hal when needed. This HDD has a built in feature to 'sleep' if not used for some time, say 20 min. Now I don't want it to sleep because it irritates me to wait everytime for it to be active for use, so I figured crontab job should fulfill my requirement.
*Edit: I think a script needs to be executed every 15 minutes. The script has to do the following(I think):
Check to see if HDD is conected via USB:
If YES then - Do the below things
If NO - Do nothing
"Below Things":
Check if the ext4 fs is mounted on media/Maxtor-C; if yes then check if any file operation is being performed; if yes-do nothing, if no then write and remove an empty file. if hdd is connected but not mounted then hdparm -z /dev/sdxx (read partitions)
View 7 Replies
View Related
Dec 3, 2010
I'm running a Slackware64 13.0 machine with the following line at the end of crontab -e:
Code:
@reboot rm -rf /tmp/*
Yet /tmp is not clearing.
This exact same setup is working fine for me on two 13.1 boxes and a -current machine; what gives?
View 5 Replies
View Related
Jan 6, 2010
I'm new to mail via the CLI, so bear with me. I have this line in my crontab:
Code:
*/5 * * * * fetchmail
Which does check my mail every 5 minutes fine. But I get the command-line output mailed to
[code]...
View 3 Replies
View Related
Jun 23, 2011
is it possible disabling a crontab job without deleting the crontab description entry (by crontab -e)?I could also accept to change the entry itself. Now it's:0 0 * * 0-6 /home/me/cron/script.csh
View 4 Replies
View Related
Jul 24, 2011
I logged on this morning as usual just to find that my desktop wallpaper had been reverted to the one I used before. My browser tabs were all gone and the shortcuts I had placed on the desktop were also all gone.Im using slackware 13.37 with KDE
View 6 Replies
View Related
Jun 12, 2010
I was trying to remove a logical volume, but used the lvremove command incorrectly.
I did something like:
Code:
Thinking it would remove somelv from myvg
But instead it said "volume group somelv: not found" and then deleted all the logical volumes in myvg.
Is there any way to restore them or is it reinstall time?
I had some backups of my system, but unfortunately they were stored on a logical volume in the same volume group.
View 6 Replies
View Related
Aug 26, 2010
I have a question about using crontab with /etc/crontab...
I had a cron job that I needed to run as root. At the time I thought that sticking it in /etc/crontab would be a good idea. However, I used the crontab command to edit /etc/crontab, which I guess is not standard procedure? Specifically, I configured /etc/crontab as my local user's crontab (i.e. sudo crontab /etc/crontab) then added my cron job as I would a local user crontab (i.e. sudo crontab -e).
Originally, my cron job looked like this:
30 * * * * root /my/batch/script &> /dev/null
After adding the new cron job I started seeing errors. Something to the effect of "can't find command root" or something similar. So I removed the 'root' user definition from the cron job and the job started running fine. However, because this is /etc/crontab, there are other system related cron jobs that have been defined to run under the root account (e.g. "17 * * * * root cd / && run-parts --report /etc/cron.hourly" runs as root, etc.). So these pre-existing system cron jobs, which up until now have been running smoothly, are now generating "can't find command root" errors. But I think that the system cron jobs _are_ successfully being run someplace because logrotate seems to be working.
So what I _think_ is happening is that /etc/crontab is being run twice: once as the system crontab, and once as my sudoed local user's crontab. When I run crontab -l I see nothing, but when I run sudo crontab -l I can see the contents of /etc/crontab. I am reluctant to delete my sudoed local user's crontab, because then in the process I would be deleting the system crontab, and I do not know how I should restore the system crontab's contents. (I am still not sure as to the most appropriate way to edit the system crontab).
How can I get out of this mess? I want /etc/crontab to go back to the way it was before--running _once_ as the system crontab. As for my new cron job, I'm willing to reconfigure it anywhere so long as I am still able to run it as root. Any ideas? (I am using Ubuntu 8.04 Server LTE)
View 2 Replies
View Related
May 4, 2010
Im using slackware64 13 and I accidentally rm one of the java plugins for mozilla when I was trying to just mv it.
/usr/lib64/mozilla/plugins/libnpjp2.so
View 3 Replies
View Related
Apr 9, 2011
I have installed an application manager(monitoring application) on my linux server. Now, i need to have backup schedule for my application. The application itself has executive file to backup database.But when i put this file in my crontab to schedule the backup program it wont run!50 09 * * * root /opt/ME/AppManager9/bin/BackupMysqlDB.sh
View 1 Replies
View Related
Dec 27, 2010
the little four squares in a grid beside the KDE launcher. Looked through all the Plasma widgets and didn't see this one. How do I get it back? Tried everything I could think of
View 3 Replies
View Related
Jul 21, 2011
I was trying to write a crontab entry using "crontab -e"
Code:
0 0 * * * cp /var/log/httpd/domains/mydomain.net.log
/home/admin/logs/mydomain.net.log
crontab is giving me this error:
Code:
"/tmp/crontab.XXXXfMOnRS":2: bad minute
errors in crontab file, can't install.
I've tried a dozen different values for the minute, but it's still giving me the same error.
View 5 Replies
View Related
Jun 7, 2010
I searched the forum with various terms and didn't find anything, so my apologies if this is a common and/or newbie problem.It seems that when I have a USB driveplugged in to switch the files around, those that I delete are still taking up space. I first noticed it with a Chinese MP3 player and thought it was the player being crappy. I could still play all the songs that were supposedly gone. Today, I noticed it with a little thumb drive that I've had for years. I plugged it into my husband's computer running winXP, and the files showed up in a weird, unusable form. I was able to delete them for real.
View 4 Replies
View Related
May 29, 2011
What is the difference between the crontab located in /etc/crontab and the crontab that can be edited using crontab -e?
View 2 Replies
View Related
Oct 26, 2009
So I installed FC11 and it seemed to be working ok I was having an issue configuring sendmail so I decided to use Yum to remove it and to re-install sendmail.I type yum remove sendmail and it asked me if I wanted to remove 39 dependancies. I said yes and it removed way more than just sendmailIt even removed Yum itself
HELP...I do not even have any way in the GUI for software installs, and YUM is no longer present.It even removed all but 7 items in my administration drop down. Can I fix this with the install CD of Fedora
View 1 Replies
View Related
Dec 21, 2010
I accidentally type mv command wrong.actually it supposed to be mv SNAP-20101215* dec10/week3_dec10/but i type the below insteadmv SNAP-20101215* dec10/week3_dec2010/Note: there is a folder name "dec10/week3_dec10/"but there is no folder name "dec10/week3_dec2010/"as a result of it, instead of having those files under dec10/week3_dec10 but it merge those files into one file name "week3_dec2010" , is there any way to change it back to orginal files?
View 6 Replies
View Related
Dec 2, 2009
I am not certain of the cause (it may have been after I updated my ATI video drivers, or instructed my system to use a dual-head configuration, which in hindsight was perfectly dumb) but regardless of the reason--now when I "startx" my monitor freezes with a few stray motionless pixels. Nothing I've done helps: tried "sax2 -r -m 0=fglrx"; tried "aticonfig --initial"; tried to revert to an earlier xorg.conf; but I don't really know what I'm doing, so I hope someone who far surpasses my knowledge of SuSE on the command line can help me out.
How do I get my desktop back?
View 9 Replies
View Related
Feb 15, 2010
I typed
#!/bin/sh
cd /
xx xxx x
[code]....
View 9 Replies
View Related
Apr 11, 2011
When installing, I used a hard drive that had a windows installation on it. In an attempt to have it format the whole drive and allow use of all the space on the hard drive, I may have made a mistake. In the end, there was only one partition which was "create volume for ..... /home with ext4." There was no partion for swap volume or root volume. It prompted me if I was sure I wanted to do that... it said I can do it that way but.... and then gave me some info which has since slipped my mind. What effect if any can I expect from having done that? The install went through perfectly and everything seems to be running ok
View 8 Replies
View Related