Default slackware root crontab
I have just read in slackware-basics that there is a default slackware root crontab which runs scripts in various /etc/cron directories.
Not being aware of this, I have over-written the default crontab to run my own rsync script. Presumably I have lost what might be some useful functions in the default crontab. How can I restore the default crontab? Thanks |
Reinstall the dcron package.
|
Login as root and do "crontab -e" and paste this in
Code:
# If you don't want the output of a cron job mailed to you, you have to direct |
Mount your Slackware installation CD, and re-install the package named: "dcron-2.3.3-i486-6.tgz" (in the "/a" directory) this should reinstall the default crontab as well.
If you don't want to reinstall the whole package, just do a "tar xvzf dcron-2.3.3-i486-6.tgz" in a directory (for instance in /root) and look for the correct crontab file. I can't remember if this is a separate file in the package or if this is generated by the installation procedure for the package. Hope this helps! |
One of the first changes I like to make to my system is to nice them
Code:
/usr/bin/nice -n 19 /usr/bin/run-parts /etc/cron.daily Probably not a big issue if you have a strong multi-core machine, but it makes a hell of a difference on my P3-800. |
Thanks all.
What I did was got hold of the package and ran explodepkg which showed that the file I wanted was called root.new. I then ran crontab root.new Examining the package install script showed that allend and Noryungi's suggestion would not have had the desired effect Code:
root@LavanKossot:/home/alan/packages/temp/install# cat doinst.sh The irony is that my PC is never on at 4am so I will have to do some editing. |
Quote:
Quote:
Missed Cron Jobs |
My Desktop runs 24/7 too :)
|
All times are GMT -5. The time now is 01:29 PM. |