View Single Post
Old 11-19-2006, 07:45 AM   #67
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
@kapoira

You can't use pwd to figure out where a script lives because ContentLister uses absolute paths to execute the scripts. The current working directory is often set to / when the script is run.

If you look at run.sh in one of the binary apps (x48, gnuchess...) you'll see one method to lookup where a script is being executed from.

The script is being placed in news to make it easily accessible by pressing the news button on the iLiad.

I feel Yokos has done very well at making this script accessible to non-unix-admin users. The intent of the script is to be extremely easy to understand and use, not to be flexible in where it can be executed from. Your "Average Joe" user is happy to be told exactly where to put the script to use it and can get baffled if the instructions say things like "Now go where you put the script..."
scotty1024 is offline   Reply With Quote