Help cron newbie!

nnCron and nnCron LITE discussion

Help cron newbie!

Postby ev1l » Sat, 01 Jul 2006, 03:27

Hi guys i need help to use rcon.

I need open http://www.bravomidia.com.br/updaters/hourupdater.php ever full hour ex: 13:00, 14:00, 15:00, 16:00...

But i not understand how rcron work.
I now i have insert comand in cron.tab

I am trying this comand:
* * * * * C:\php\php.exe exec.php
For exec every minute for test, but is not working.

Please help me.
ev1l
 
Posts: 2
Joined: Sat, 01 Jul 2006, 03:22

Postby Valery_Kondakoff » Tue, 04 Jul 2006, 13:13

please, give us more info: what is in cron.log, cron.out, which nnCron version and build do you use, which OS is instaled on your PC?
CU
VK
User avatar
Valery_Kondakoff
Site Admin
 
Posts: 769
Joined: Thu, 01 Jul 2004, 20:49
Location: Moscow, Russia

Postby Valery_Kondakoff » Tue, 04 Jul 2006, 17:22

Ah, I think I know what is the problem. Specify the full path to 'exec.php' and make sure you are not using the relative paths inside this php-script.
CU
VK
User avatar
Valery_Kondakoff
Site Admin
 
Posts: 769
Joined: Thu, 01 Jul 2004, 20:49
Location: Moscow, Russia

Postby ev1l » Tue, 11 Jul 2006, 18:38

in cron log:
21:00:22 3520 Start nnCron
21:00:22 3520 Load cron.tab
21:02:17 972 Start nnCron
21:02:17 972 Load cron.tab
21:08:03 1636 Start nnCron
21:08:03 1636 Load cron.tab
21:13:31 1636 Load cron.tab
21:13:31 1636 WARNING: line:7 pos:6. Invalid time specification. Possible range is [0-59].
21:13:31 1636 WARNING: line:8 pos:8. Invalid time specification. Possible range is [0-59].
21:17:31 2616 Start nnCron
21:17:31 2616 Load cron.tab

cronout not exist.

I using Windows 2003 server.
I use cron lite last version

You can can give me a full exemple.
I need exec exec.php any full hour.

Thx for any help
ev1l
 
Posts: 2
Joined: Sat, 01 Jul 2006, 03:22

Postby fade » Wed, 12 Jul 2006, 14:25

Hi ev1l. I'm also a newbie, but I will try to help you out.

The cron.log points out that the problem as to do with time specification

21:13:31 1636 WARNING: line:7 pos:6. Invalid time specification. Possible range is [0-59].
21:13:31 1636 WARNING: line:8 pos:8. Invalid time specification. Possible range is [0-59].


If you want to run a something every hour, put a line like this in your task:
Time: 0 * * * * *

Check out what you did in lines 7 and 8 of your task
Hope this helps. If not, post your task
fade[/quote]
fade
 
Posts: 7
Joined: Sat, 08 Jul 2006, 18:54

Postby Valery_Kondakoff » Wed, 12 Jul 2006, 17:22

ev1l is usin nnCron LITE, not nnCron.

so, the right syntax is

Code: Select all
0 * * * * C:\php\php.exe c:\path_to_php_file\exec.php

or
Code: Select all
0 * * * * * C:\php\php.exe c:\path_to_php_file\exec.php

depending of your YearField cron.ini setting.

note the full paths to php.exe and php-script.
CU
VK
User avatar
Valery_Kondakoff
Site Admin
 
Posts: 769
Joined: Thu, 01 Jul 2004, 20:49
Location: Moscow, Russia


Return to nnCron forum (English)

Who is online

Users browsing this forum: Google [Bot] and 1 guest