Ok, then, if the script is:

#!/bin/sh
echo $PWD > /tmp/libr.log
echo $LD_LIBRARY_PATH >> /tmp/libr.log
LD_LIBRARY_PATH=../../projects/test.test/
../../projects/test.test/hello_cuda2 "$@"
echo $PWD >> /tmp/libr.log
echo $LD_LIBRARY_PATH >> /tmp/libr.log

then: cat libr.log

~/BOINC/samples/slots/0
../../projects/test.test:.:../..
~/BOINC/samples/slots/0
../../projects/test.test/


El 16 de octubre de 2009 21:49, Nicolás Alvarez
<[email protected]>escribió:

> El Vie 16 Oct 2009 05:39:08 Francisco Sanz García escribió:
> > Hi  Bernd.
> >
> > I modified your first shell script:
> >
> > #!/bin/sh
> > LD_LIBRARY_PATH=../../projects/test.test/
> > echo $LD_LIBRARY_PATH > /tmp/ldlibr.log
> > echo $PWD             >> /tmp/ldlibr.log
> > ../../projects/test.test/hello_cuda2 "$@"
>
> The first echo will *obviously* print "../../projects/test.test/" since
> you're
> setting it right before. The point is printing it *before* setting it
> yourself to know what the original was...
>
> --
> Nicolas
> _______________________________________________
> boinc_dev mailing list
> [email protected]
> http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
> To unsubscribe, visit the above URL and
> (near bottom of page) enter your email address.
>
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to