I have a shell script to change my path permanently to another path. My requirement is to source it using a perl script(perl script has some other code as well and finally it has to source the below shell scipt)
test.sh:
!/bin/bash
cd /db/oa/invoke/path
test.pl:
!/usr/bin/perl
system("source /home/test.sh");
but sourcing is not working. I know the command system("sh /home/test.sh --help")
for shell script execution from perl script. But I need similar command to source the shell script. Please let know, if I am missing any details. I have already seen questions being asked on same topic, but i didn't see a proper solution for sourcing. can anyone help me on this.
Regards Anand