Consultor Eletrônico



Kbase P2640: How to Run Progress procedures under CRON
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   22/08/2003
Status: Unverified

GOAL:

How to Run Progress procedures under CRON

GOAL:

How to run progress procedures automatically in UNIX

FACT(s) (Environment):

UNIX

FIX:

When running Progress procedures from CRON note the following:

1. The TERM environment variable must be set to a valid terminal
entry in the DLC/protermcap file.
Set the TERM environment variable in the scripts that cron calls or in the progress
script (mbpro) for example, TERM=vt100;export TERM.

2. CRON should call a script that executes mpro, mbpro or pro.
CRON should not call $DLC/_progres directly.
The called script should set up the Progress environment i.e. DLC,
PROPATH, PATH, PROMSGS, PROCFG, TERM, PROTERMCAP, should be set.

3. In the script, set your working directory explicitly via cd.

4. The Progress procedure should not have any "user interaction" code such as:
PROMPT-FOR statements.