Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Source command in perl scriptby bannaN (Acolyte) |
on Oct 20, 2011 at 09:08 UTC ( [id://932592]=note: print w/replies, xml ) | Need Help?? |
Have the script like this?
If i try to run something like this, the db2 command will not be recognized. Error: "Can't exec "db2": No such file or directory" So if i understood you correctly that doesnt work for some reason. As you may have understood i am not that into the logic of how different shells acquire their environment, and pass it on. Am i right in the assumption that the system command will fork and inherit the environment from the perl script? If i am, the question still stands, how can i make the perl script acquire the db2 environment
In Section
Seekers of Perl Wisdom
|
|