Apps :: cron problems



dsl version 3.4

Seems there are two crontab choices: /opt/crontab and etc/crontab (symlink back to /knoppix/etc/crontab)

Both files are under root/root.

When executed in aterminal as su, they both come back with line1: ./events: permission denied.

Any ideas as to what is going wrong?

Big_Pc_Man

And /KNOPPIX/etc/crontab links to /opt/crontab, all the same file.

Cron is too big to be in DSL and instead we use a perl script called MyCron located at /usr/local/bin

Start with the boot code cron  or manually with:

/usr/local/bin/MyCron &

Then take a look at /tmp/crontest to see the default test
Use your favorite DSL editor to edit /opt/crontab

Thanks. When I activate mycron through the control panel it"freezes" up and I end up having to kill the panel process. By this I mean I can't access anything else in the panel like system stats to view what processes are running. Any ideas?
Ah, yes!

The startup command within DSLpanel needs to be changed to "sudo MyCron &"

Wow - MyCron is not happy with me!
By the way thanks for all the help.

1. I have changed the crontab file to be 2 * * * * /opt/myscript.sh
2. myscript is:

/opt/wget -v --output-document=/opt/myscript.log http://www.mysite.com >> /opt/terminalout.log 2>&1

3. Ran the script from the terminal and it works fine. Everything goes to the proper place.

4. As su in aterminal: /usr/local/bin/MyCron &

response: [1]  2854
second response: Argument """" isn't numeric in sprintf at /usr/local/bin/MyCron line 73, <CT> line 1.

Argument /opt/ isn't numeric in sprintf at /usr/local/bin/MyCron line 73, <CT> line 1.

At this point the cpu is running at 100% so I killed 2854 to get the system back.

What the heck is going on?

-----------------------------------------

Well Ok another dumb mistake. There are 6 fields for the time trigger and I only had 5 in crontab.

Next Page...
original here.