cd $(dirname "$0") <-- = change to the directory of the program you are trying to run
LD_LIBRARY_PATH=. <-- = add the current directory (SHOULD be the one above) to the LD_LIBRARY_PATH...
you could make that absolute I guess like...
LD_LIBRARY_PATH=/mnt/us/kindlevncviewer:$LD_LIBRARY_PATH
IIRC there is like a jpg lib and libvncclient? in there... not much anyways.. both variation can cover all use cases for this thing... It works on mine as Hawhill provisioned and so would this other (more standard) variation.
as it is an ephemeral value that will "just disappear" at the end of the script run it wont matter in this context... however as knc1 says as a general rule you would not have something as horrible as "." in your global LD_LIBRARY_PATH.
Your error, you reported, however was nothing to do with any of that... you said that
lipc-set-prop com.lab126.powerd preventScreenSaver 1
failed in some way...
Have you checked the output of just
lipc-set-prop com.lab126.powerd preventScreenSaver 1
via ssh... or myts.. or something (I use both of them on the DX )
perhaps the script got mangled in some way... ???
I really am at a bit of a loss as I run this thing all the time...
Hope that at least provides some background. if not a solution.
Last edited by twobob; 03-10-2013 at 03:41 PM.
|