clacker
Group: Members
Posts: 570
Joined: June 2004 |
|
Posted: Oct. 29 2004,15:04 |
|
Kennyfung, are you trying to install cron from the liveCD or the hard drive? I just tried it from the liveCD (0.8.3) and I got the same errors you did. You need to add back the function xargs. Can you run the gnu-util dsl on a hard drive install? or apt-get the necessary files. This is all you need to do for the hard drive install.
The second error was a liveCD only error and was due to the fact that cron needs to add a group, but dsl doesn't let you add users and groups by default. If you are running from the live cd, my suggestion would be to use my adduser.sh script. DO NOT RUN THIS SCRIPT FROM A HARD DRIVE INSTALL, YOU DO NOT NEED IT
Code Sample | #!/bin/bash rm /etc/passwd- rm -f /etc/passwd.org cp /KNOPPIX/etc/passwd- /etc/passwd- cp /KNOPPIX/etc/passwd.org /etc/passwd.org rm -f /etc/gshadow rm -f /etc/gshadow- rm -f /etc/shadow.org cp /KNOPPIX/etc/gshadow /etc/gshadow cp /KNOPPIX/etc/gshadow- /etc/gshadow- cp /KNOPPIX/etc/shadow.org /etc/shadow.org rm -f /etc/group- rm -f /etc/group.org cp /KNOPPIX/etc/group- /etc/group- cp /KNOPPIX/etc/group.org /etc/group.org |
As far as using cron from the liveCD after apt-getting it, you need to start it up first. I just typed /etc/init.d/cron start to do that (you only need to do that if you're on the liveCD or you just loaded cron, check to see if it's already running with ps -ax). No error and you can see it running with a ps -ax command. Now set a system variable so that cron knows which editor to use. From a bash shell type:
export VISUAL=scite
to use scite as your crontab editor. You could use any editor you want, I like scite myself. Now edit a crontab file by typing crontab -e Here is an example crontab file that appends the current time to a file every minute:
Code Sample | # minute (0-59 or *) # hour (0-23 or *) # day (1-31 or *) # month (1-12 or *) # day of week (0-6 6=Sunday) * * * * * date >> /home/dsl/crontest
|
view your crontab file using crontab -l You should be rockin' and rollin'
|