Consultor Eletrônico



Kbase P35820: File not found error using Windows Task Scheduler to start and stop Progress databases/Webspeed brok
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/4/2005
Status: Unverified

FACT(s) (Environment):

Windows 32 Intel
Progress 9.x

SYMPTOM(s):

Using Windows Task Scheduler to start and stop Progress databases/Webspeed brokers

Batch job run by Scheduler referencing wtbman (webspeed broker) and dbman (databases)

Task Scheduler error message of "file not found."

at 1:00a /every:M,W,F,Su e:\dlc91d\bin\wtbman -name us_pilotws -port 20931 -stop
at 1:30a /every:M,W,F,Su e:\dlc91d\bin\wtbman -name us_pilotws -port 20931 -start

CHANGE:

Using Windows Task Scheduler to automate database/webspeed broker startup and shutdown/

CAUSE:

Progress environment not properly set in batch file.

FIX:

Environment for DLC and PATH needs to be set properly either at system level or within the batch file itself. If using a Progress executable, use the underscore executable (_progres, _mprosrve, etc) and insert CALL before the executable.

For example, batch job with environment set:

DLC=C:\progra~1\prog91d
PATH=C:\progra~1\prog91d;C:\progra~1\prog91d\bin;%PATH%
dbman -database sports2000 -start

DLC=C:\progra~1\prog91d
PATH=C:\progra~1\prog91d;C:\progra~1\prog91d\bin;%PATH%
wtbman -port 20591 -name wsbroker1 -start

To call a Progress executable directly:

AT 1:30p EVERY:WEDNESDAY CALL c:\progra~1\prog91d\bin\_mprosrv sports2000 -S 4000
AT 2:30p EVERY:WEDNESDAY CALL c:\progra~1\prod91d\bin_mprshut sports2000 -by