Abuibra
22nd May 2003, 10:46
BaaN IV C4
NT 4.0
I am trying to run a daily job using the NT Schedule Task, however the result is "Could not start". I have already created the job plus the bwc to run the job and modify the startjob(batch file as follow:
@echo off
if "%1" == "" goto argerror
start bw post.bwc -- -set BSH_JOB=%1 ttaad5203m000
goto end
:argerror
echo Usage: startjob user-config-file name-of-job-to-start [jobfile-OK] [From-session-number]
echo where user-config-file is the name of the bwc file (leave the .bwc off)
goto end
:end
Any suggestions?
Thanks
Guenni26
22nd May 2003, 11:33
Hi Abuibra,
the batch file looks quite O.K., perhaps you have to enter the full qualified path (Like"start C:\Program files\baan\bin\bwc.exe post.bwc ....)
And you have to provide a job as a parameter in order to get this file running.
Hope this helps,
Guenni
victor_cleto
22nd May 2003, 21:32
Always do a search before posting, this topic has been already discussed.
As starting point, see thread http://www.baanboard.com/baanboard/showthread.php?threadid=1659&s=&perpage=5&pagenumber=1&display=show
pedromrs
23rd May 2003, 00:05
Guenni,
Make sure you monitor the task status even now and so.
We have several tasks in our server and randomly they lose security credentials...reading through Internet forums I found several users with the same problem (some suggesting server reboots others daylight saving time as the cause). Microsoft seems to have confirmed this is problem with Windows NT 4 and Windows 2000. Unfortunetly, and as far as I know, there is only a hotfix for Windows 2000 operating systems.
Abuibra
23rd May 2003, 05:54
Hi victor_cleto,
I have gone to the thread you suggested, try what was suggested but still not working. I will really appreciate if I can get more advice since I have to run several jobs manually daily.I think the scheduling is the best way.
Thanks
andrew.page
23rd May 2003, 08:44
Abuibra
We had the same problem, putting in a fully quallified path for the .bwc file also fixed it (like below)
Make sure first that the job can be run from the command line before you add it as a acheduled task.
@echo off
if "%1" == "" goto argerror
start e:\baan\bin\bw e:\baan\baan071.bwc -- -set BSH_JOB=%1 -set BSH_JOBOK="%2" -set BSH_FRSES="%3" ttaad5203m000
goto end
:argerror
echo Usage: startjob name-of-job-to-start [jobfile-OK] [From-session-number]
goto end
:end
Abuibra
23rd May 2003, 10:17
Is my path right on the schedule task:
e:\baan\bin\startjob ? starting the task on the baan server or the client pc which is better?
Thanks
andrew.page
23rd May 2003, 11:01
Is the path right? Where is the file startjob.bat on your server - that is where the path should be pointing to.
Normally it is in %bse%\bin (in my case BaaN is installed on drive E: but it could be different for you.)
I prefer not to run the jobs on the server, but just to allow the server to serve. (just my personal preference)
Abuibra
3rd June 2003, 08:51
Hi,
I have tried to run the the startjob file from the command line and it is giving an error that it can't find the job - "post.bwc" file and its componenets. Please see attachment.
Thanks.
amarpreet
4th June 2003, 11:43
I am able to run this on clients (windows 98), but can't get the scheduler working on NT server. In fact I didn't tried it too hard as it serves my purpose by running it on clients.
In the batch file which I run through windows task scheduler, I type as
c:
cd\
start C:\baan\lib\USER\amar.bwc
exit
In the BW config command line I put
-- -set BSH_JOB=pdso ttaad5203m000
where my job's name is pdso. U can change it with the job ur trying to run.
I found this is the easiest way to run a job through a scheduler.
Abuibra
6th June 2003, 09:16
Thanks amarpreet,
But I am still getting the same above mentioned error can't find the post.bwc & its components. However, I can run the job from the command line. I am using Win 2000.
Thanks
Abuibra
6th June 2003, 09:54
Hi amarpreet,
I had install two environments which were causing the problem. once I deleted the second BaaN enviroment, it's working fine now.
Thanks
Frank Rogers
24th September 2003, 12:04
Did any of the contributors to this thread or anyone else reading it consider , evaluate or implement a propietary scheduling package ?
If so which ones and what were your conclusions ?
Many thanks
Frank
Guenni26
29th September 2003, 21:20
Hi Frank,
I have good experiences with Macro Angel, a freeware tool that is much more reliable than the standard windows scheduled tasks.
It runs on our server since 2 years and works fine.
Regards,
Guenni