Answered Prodel inside Linux cron

lukas88

New Member
I have a Linux bash script that uses the prodel command but this always fails when run as a cronjob with
Code:
msgOpen: unable to open message file: PROMSGS

It runs fine when I execute the script directly so I assumed the issue was with environmental variables. However even putting the entire contents of "env" in my script still doesn't fix it.

What else could it be if not environmental variables?
 

Rob Fitzpatrick

ProgressTalk.com Sponsor
Progress commands should work in your script if you include the following:

Code:
DLC=/my/dlc/dir
PATH=$DLC/bin:$PATH
export DLC PATH

And if for some reason it still can't find promsgs, e.g. if you moved it, then you can also set and export the PROMSGS environment variable.
 

lukas88

New Member
Thanks a lot - I forgot to use "export" therefore the sub-processes weren't seeing the environmental variables.
 
Top