<br><tt><font size=2>cognitive.libertarian+ml@gmail.com wrote on 27/04/2011
19:45:06:<br>
<br>
[SNIP]</font></tt>
<br><tt><font size=2><br>
> <br>
> #!/bin/sh<br>
> <br>
> NXCOMMAND=$(basename $0)<br>
> <br>
> export LD_LIBRARY_PATH=/usr/NX/lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}<br>
> <br>
> exec /usr/X11R6/bin/$NXCOMMAND ${1+"$@"}<br>
> <br>
> <br>
> I don't understand the purpose of the recursion. Why is the
wrapper<br>
> calling itself instead of nxagent?</font></tt>
<br>
<br><tt><font size=2>Because you just told it to do so.</font></tt>
<br>
<br><tt><font size=2>The search PATH should find the wrapper . . . </font></tt>
<br><tt><font size=2>The wrapper should update LD_LIBRARY_PATH and</font></tt>
<br><tt><font size=2>launch the respective elf.</font></tt>