A
Art Iculos Libres
I was interested in nnCron's ability to handle "missed tasks", and knowing
that it was recommended as PricelessWare, I installed the Lite version.
Set up is simple enough it seems. However, after creating the tasks in the
cron.tab file according to the Cron specification / syntax, nnCron Lite
does not run the tasks.
Things to note:
- OS is WinXP Pro SP2 (does nnCron not work with SP2? - everything else on
my PC works with SP2). I have never used any version of nnCron on any other
OS, so I can't confirm whether it would work on win 98, XP SP1, etc.;
- Cron was successfully loaded as a service ... cron.exe shows in Task
Manager;
- Using FileMon from SysInternals, cron.exe can be seen accessing the
cron.tab file each minute as it is supposed to do;
- I have Data Execution Prevention turned on for all applications, and even
though cron.exe did not cause DEP to throw a flag, I included cron.exe in
the exclusions list as a long shot ... this did not help;
- I originally had four tasks in cron.tab using the "missed task" character
("@") on each. To test if this was an issue, I removed the "@" and this did
not help; furthermore, I deleted all of the tasks and replaced them with a
very simple, single task to see if it would run ... no go;
- I ran "cron.exe -reload" after each change of cron.ini and cron.tab to no
avail;
- The log file shows that cron.exe is successfully being loaded and run;
- The tasks in the cron.tab file all run when manually launched;
- I have adequate permissions to run cron as a service in my profile;
- Other "grabbing-at-straws" fixes (too numerous to mention) tried without
success.
Here is my cron.tab:
#CRONTAB FILE
# Classic crontab format:
# Minutes Hours Days Months WeekDays Command
# M H D M WD C
@30 5 * * 1,4 H:\My Documents (H)\Batch Files\XXCopyBackups\Main1AB.bat
@30 5 * * 2,5 H:\My Documents (H)\Batch Files\XXCopyBackups\Main2AB.bat
@30 5 * * 3,6 H:\My Documents (H)\Batch Files\XXCopyBackups\Main3AB.bat
@0 0-23/4 * * H:\My Documents (H)\Batch
Files\XXCopyBackups\MainHourlyAB.bat
Even though the nnCron Lite documentation says you don't have to use quotes
( " ") around paths with spaces, I tried it both ways. Neither way worked.
I also tried with no line feeds between each task ... no go.
Hopefully there is something simple I'm missing in the syntax. As I read
the syntax rules and wrote the tab file at 3:00 am, this is very possible.

nnCron has a forum, but it requires forum registration to post and
additionally, it doesn't seem to have much traffic, so I chose to post
here.
Any help is appreciated.
Thank you.
PS
I didn't really want to bring this up in the main discussion as I thought
it might confuse the issue if it was irrelevant. However, upon first
installing nnCron Lite, I checked the nnCron log and it showed several
instances of the same message indicating an error accessing
"etc\taskinfo.txt". I looked up this file in nnCron Lite Help and it says
that this is the file where information regarding missed tasks is stored. I
created a subdirectory "etc" (sub of the nnCron Lite application directory)
and placed an empty text file named "taskinfo.txt" in it. I reloaded nnCron
Lite using the "-reload" switch and the error message disappeared.
Wondering if this subdirectory file should have been automatically created
during installation, I uninstalled nnCron Lite and reinstalled; it still
didn't create the subdirectory / file which I had to again manually create.
Why is this happening? Is it related perhaps to the other issues above?
Again, thank you.
that it was recommended as PricelessWare, I installed the Lite version.
Set up is simple enough it seems. However, after creating the tasks in the
cron.tab file according to the Cron specification / syntax, nnCron Lite
does not run the tasks.
Things to note:
- OS is WinXP Pro SP2 (does nnCron not work with SP2? - everything else on
my PC works with SP2). I have never used any version of nnCron on any other
OS, so I can't confirm whether it would work on win 98, XP SP1, etc.;
- Cron was successfully loaded as a service ... cron.exe shows in Task
Manager;
- Using FileMon from SysInternals, cron.exe can be seen accessing the
cron.tab file each minute as it is supposed to do;
- I have Data Execution Prevention turned on for all applications, and even
though cron.exe did not cause DEP to throw a flag, I included cron.exe in
the exclusions list as a long shot ... this did not help;
- I originally had four tasks in cron.tab using the "missed task" character
("@") on each. To test if this was an issue, I removed the "@" and this did
not help; furthermore, I deleted all of the tasks and replaced them with a
very simple, single task to see if it would run ... no go;
- I ran "cron.exe -reload" after each change of cron.ini and cron.tab to no
avail;
- The log file shows that cron.exe is successfully being loaded and run;
- The tasks in the cron.tab file all run when manually launched;
- I have adequate permissions to run cron as a service in my profile;
- Other "grabbing-at-straws" fixes (too numerous to mention) tried without
success.
Here is my cron.tab:
#CRONTAB FILE
# Classic crontab format:
# Minutes Hours Days Months WeekDays Command
# M H D M WD C
@30 5 * * 1,4 H:\My Documents (H)\Batch Files\XXCopyBackups\Main1AB.bat
@30 5 * * 2,5 H:\My Documents (H)\Batch Files\XXCopyBackups\Main2AB.bat
@30 5 * * 3,6 H:\My Documents (H)\Batch Files\XXCopyBackups\Main3AB.bat
@0 0-23/4 * * H:\My Documents (H)\Batch
Files\XXCopyBackups\MainHourlyAB.bat
Even though the nnCron Lite documentation says you don't have to use quotes
( " ") around paths with spaces, I tried it both ways. Neither way worked.
I also tried with no line feeds between each task ... no go.
Hopefully there is something simple I'm missing in the syntax. As I read
the syntax rules and wrote the tab file at 3:00 am, this is very possible.

nnCron has a forum, but it requires forum registration to post and
additionally, it doesn't seem to have much traffic, so I chose to post
here.
Any help is appreciated.
Thank you.
PS
I didn't really want to bring this up in the main discussion as I thought
it might confuse the issue if it was irrelevant. However, upon first
installing nnCron Lite, I checked the nnCron log and it showed several
instances of the same message indicating an error accessing
"etc\taskinfo.txt". I looked up this file in nnCron Lite Help and it says
that this is the file where information regarding missed tasks is stored. I
created a subdirectory "etc" (sub of the nnCron Lite application directory)
and placed an empty text file named "taskinfo.txt" in it. I reloaded nnCron
Lite using the "-reload" switch and the error message disappeared.
Wondering if this subdirectory file should have been automatically created
during installation, I uninstalled nnCron Lite and reinstalled; it still
didn't create the subdirectory / file which I had to again manually create.
Why is this happening? Is it related perhaps to the other issues above?
Again, thank you.