XP is just a number | |
PerlMonks |
Re: Is it possible to change the directory of the parent process on Linux?by bliako (Monsignor) |
on Mar 10, 2021 at 14:34 UTC ( [id://11129408]=note: print w/replies, xml ) | Need Help?? |
Unlikely but if your parent process is a unix shell and you want to end it as soon as the perl script ends, then end your perl script with exec '/bin/bash --ini-file somefile' and somefile contains cd /. You can do without the file by hacking something like this: bash$ /bin/bash --init-file <(echo "cd/"). In this way you will end up with a new shell and in dir /
In Section
Seekers of Perl Wisdom
|
|