How to launch an external process and change the LD_LIBRARY_PATH for the child process
I could launch a external process via $zf(-2).
However, this child process need to refer some shared libraries in RUNTIME,so I have to set up the proper paths to the environment variable LD_LIBRARY_PATH, is anyone know how to do this?
Thank for your help.
I needed to do exactly that for LibreOffice to work.
do $zf(-2, "unset LD_LIBRARY_PATH && your_cmd")
Here's an article about that.
Is there a way to know the process Id of the given $zf(-2) on the *nix platform?
I would like kill this process after some conditions satisfied (or if there is other way to kill the process without knowing its pid).
Thanks.