Beginner-- no execution

nnCron and nnCron LITE discussion

Beginner-- no execution

Postby Jandro » Mon, 27 Mar 2006, 01:49

nncron is running as a service on my XP/SP2 machine.

I have not been able to make anything run using my cron file. I have tried to keep it simple. Here is my entire cron.tab file:

#CRONTAB FILE
# Classic crontab format:
# Minutes Hours Days Months WeekDays Command

#*/15 8-16 * * 1-5 checkmail.exe

* * * * * echo "test" > "c:\program files\cron\test.txt"

My log reads:

16:15:09 2408 Start nnCron
16:15:09 2408 Load cron.tab
16:30:30 2408 Load cron.tab
16:35:31 2408 Load cron.tab
16:54:47 628 Start nnCron
16:54:47 628 Load cron.tab
17:00:30 628 Load cron.tab
17:03:21 628 Load cron.tab

I have started and stopped the service repeatedly. I have restarted my machine. I have read the documentation and the forum posts. I have jumped up and down. Still no execution. Can you help me?
Jandro
 
Posts: 2
Joined: Mon, 27 Mar 2006, 01:43

Postby Valery_Kondakoff » Mon, 27 Mar 2006, 09:16

there is nothing to execute in your example. 'echo' is not a program. this is just an internal command of a cmd.exe. so - try smth like this:

* * * * * cmd.exe /c echo test >> c:\test.txt
CU
VK
User avatar
Valery_Kondakoff
Site Admin
 
Posts: 769
Joined: Thu, 01 Jul 2004, 20:49
Location: Moscow, Russia

Postby Valery_Kondakoff » Mon, 27 Mar 2006, 09:18

and another one idea: you have set you example to work every 15 minutes from 8 am to 16 pm every day of week excepting saturday and sunday. Yesterday was sunday. Maybe this is a reason why your example does not work?
CU
VK
User avatar
Valery_Kondakoff
Site Admin
 
Posts: 769
Joined: Thu, 01 Jul 2004, 20:49
Location: Moscow, Russia

Postby Jandro » Mon, 27 Mar 2006, 19:13

Thanks for your ideas.

there is nothing to execute in your example. 'echo' is not a program. this is just an internal command of a cmd.exe. so - try smth like this:

* * * * * cmd.exe /c echo test >> c:\test.txt


OK. Tried that. Still nothing, and nothing showing in the log. Shouldn't the log at least show that it's tried to run something? Here's today's log:

09:42:31 3592 Load cron.tab
10:43:49 3964 Service stopped.
10:43:57 1528 Start nnCron
10:43:57 1528 Load cron.tab


and another one idea: you have set you example to work every 15 minutes from 8 am to 16 pm every day of week excepting saturday and sunday. Yesterday was sunday. Maybe this is a reason why your example does not work?


I think you were looking at the commented-out example line (
#*/15 8-16 * * 1-5 checkmail.exe) that comes with the cron.tab template. My cron.tab now reads:

#CRONTAB FILE
* * * * * cmd.exe /c echo test >> c:\test.txt

Thanks again for your help!
Jandro
 
Posts: 2
Joined: Mon, 27 Mar 2006, 01:43

Postby Valery_Kondakoff » Mon, 27 Mar 2006, 22:13

Ah, yes, sorry to pinting to a commented line.

As of your problem: currently I have no idea what may be wrong. Are you sure you are using the cron.tab, which is located in nnCron LITE home directory? Have you tryed to reinstall nnCron LITE form scratch?

Which nnCron LITE build do you use?
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: No registered users and 3 guests