CJ H · Dec 26, 2017

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.

0 381
Discussion (3)1
Log in or sign up to continue

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).


  1. Please ask this as a separate question.
  2. What, and from where do you want to kill? Why? Consider expanding your question.