Mar 5, 2004, 3:40 AM
Post #1 of 4
ENV problem in perl
I am here with a typical problem. We use perl to run some jobs on the UNIX server. These jobs are triggered from mainframe. On the server we have a process called tracker which spools for trigger request from m/f and when it gets one it executes the perl script called runjob.pl.
Now the problem is we are using UDB here and UDB needs a setup scripts be run which sets up the ENV variables required to run, as a result we need to run this shell script from within our perl program. I tried `. setup.sh` in perl but it doesn't set the env for my program, and it fails saying DB2INSTANCE not set. Is there a way I can run this script from my program and get it to recognise the variable set?
Any help will be highly appreciated.