I would like to create a perlscript that executes a DB2 ddl file for initializing a database.
But the problem is that in order to do so (Script is runned by root) i have to do a source command.
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?
if if run
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.