in reply to Re: Environment Var Problem
in thread Environment Var Problem

That's interesting! How does it get past the exec statement? In other words, what prevents the process from getting stuck in a loop?

Replies are listed 'Best First'.
Re^3: Environment Var Problem
by revdiablo (Prior) on May 09, 2006 at 19:54 UTC

    It checks if the new path is in LD_LIBRARY_PATH before running itself again. Once the new path is there, it doesn't run itself anymore, breaking the loop.

      It works, but I didn't get the stdout from a print statement inserted before the exec.

      Slimey, but satisfying.

      Thanks for the help.