[ltp] Cronjobs

Daniel Baule linux-thinkpad@linux-thinkpad.org
Wed, 22 Feb 2006 22:56:15 +0100


Hi folks,

i got several problems configuring my T43 with Gentoo.
I installed Vixie-Cron and try to get it started but without success.
Thats what i planned:
Every minute Cron should start a script that does a check fpr temperature 
in /proc/acpi/ibm/ if temperature is above a certain level the fan should be 
started.

thats what i did

added vixie cron to default runlevel
emerge ibm-acpi
added it to default runlevel
added experimental=1 to modprobe.conf
nano /etc/crontab 

## for vixie cron
##
##$Header: /var/cvsroot/gentoo-x86/sys-process/vixie-cron/files/crontab-3.0.1-r4,v 
1.1 2005/03/04 23:59:48 ciaranm Exp $
##
##
#
## Global variables
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
#
## check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
0  *  * * *     root    rm -f /var/spool/cron/lastrun/cron.hourly
1  3  * * *     root    rm -f /var/spool/cron/lastrun/cron.daily
15 4  * * 6     root    rm -f /var/spool/cron/lastrun/cron.weekly
30 5  1 * *     root    rm -f /var/spool/cron/lastrun/cron.monthly
*/10  *  * * *  root    test -x /usr/sbin/run-crons && /usr/sbin/run-crons
*/1   *  * * *  root    /home/chiefcommander/./ibm-fan.sh
00 */1 * * * root /usr/sbin/ntpdate ntp1.upb.de ntp2.upb.de > /dev/null 
&& /sbin/clock --systohc

But the script and the ntpdate do not start when i reboot or work in kde (i 
work as user not as root) did i forget something?


2.) i want to get all my fn-buttons work, but i do not find a good script for 
it and do not understand the tutorials at www.thinkwiki.org. whats the 
difference between xmodmap and tpb, whats best and what should how be used?

Thanks for your help