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

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

Replies are listed 'Best First'.
Re^6: Env Variables
by LinuxUser2008 (Acolyte) on Jun 10, 2010 at 18:15 UTC
    Thnks to you, i got it resolved.. Good Day almut..
Re^6: Env Variables
by LinuxUser2008 (Acolyte) on Jun 10, 2010 at 18:16 UTC
    Thnks to you, i got it resolved.. Good Day almut..

    Regards,
    Blub:)