My current script is as followed:
Code:
#!/bin/sh
su et
cd "media/ET"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
exec ./ettv.x86 "$@"
That's probably completely wrong, I took the default ET script and tried adding my own additions.
The exact order I need to do things is:
- Change users to "et"
- CD to "/media/ET"
- run ./ettv.x86
I want ET to be run as the user "et" and for some reason, I can't directly su/sudo to run the file without being in the user "et" and the "/media/ET" directory.
This may not be exactly "newbie" but I couldn't find any other forum and I'm hoping someone here can help.
Thanks