in reply to Re^3: Env Variables
in thread Env Variables

Thanks almut, But i did not understand the point of the last line in the BEGIN segment.. Could you please explain that??

Regards,
Blub:)

Replies are listed 'Best First'.
Re^5: Env Variables
by almut (Canon) on Jun 10, 2010 at 17:39 UTC

    exec runs a new program in the same process (PID doesn't change), i.e. it replaces the running program with another one.  In this particular case, the "new" program is the old one, your script, which is available in $0.

    The effect of this seemingly senseless exercise is that the runtime linker this time reads the updated LD_LIBRARY_PATH (which it only reads once on exec of a binary).

      Thnks to you, i got it resolved.. Good Day almut..
      Thnks to you, i got it resolved.. Good Day almut..

      Regards,
      Blub:)