in reply to Is it possible to change the directory of the parent process on Linux?
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 /
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is it possible to change the directory of the parent process on Linux?
by Anonymous Monk on Mar 10, 2021 at 15:40 UTC |