Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: cron problems, permission problems< Next Oldest | Next Newest >
Big_Pc_Man Offline





Group: Members
Posts: 86
Joined: July 2007
Posted: July 25 2007,01:45 QUOTE

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


--------------
Big_Pc_Man
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: July 25 2007,04:43 QUOTE

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
Back to top
Profile PM WEB 
Big_Pc_Man Offline





Group: Members
Posts: 86
Joined: July 2007
Posted: July 25 2007,11:31 QUOTE

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?

--------------
Big_Pc_Man
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: July 25 2007,14:31 QUOTE

Ah, yes!

The startup command within DSLpanel needs to be changed to "sudo MyCron &"
Back to top
Profile PM WEB 
Big_Pc_Man Offline





Group: Members
Posts: 86
Joined: July 2007
Posted: July 25 2007,17:32 QUOTE

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.


--------------
Big_Pc_Man
Back to top
Profile PM 
9 replies since July 25 2007,01:45 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: cron problems

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code