perlquestion
bannaN
Hi,
I would like to create a perlscript that executes a DB2 ddl file for initializing a database.<br/>
<br/>
But the problem is that in order to do so (Script is runned by root) i have to do a source command.<br/>
<br/>
source /home/db2inst1/sqllib/db2profile
<br/>
How can i execute this inside a script, and make the script inherit this environment, so that commands later in the script issued with system will inherit this env?<br/>
<br/>
if if run
<code>
`source /home/db2inst1/sqllib/db2profile`;
</code>
This will result in the following error
'Can't exec "source": No such file or directory' even though i can execute the same command directly in the shell.
<br/>