|
|
Posted 6/26/2006 3:53:08 PM |
|
|
Forum Member
Group: Forum Members
Last Login: 6/8/2009 11:29:02 AM
Posts: 12,
Visits: 30
|
|
I have written a script that returns a feed of my Wikipedia watchlist. It's written in PHP, and uses the PHP command-line SAPI. (You can see the code at http://en.wikipedia.org/wiki/User:Ryos/Watchlist_RSS_feeder if you like.)
I want to use command-line arguments to allow for configuration so people don't need to edit the script to use it. My options work fine when the script is called from the command line, but when I type them into the "arguments" box in the script subscription info pane, they don't.
It seems that the passing of said arguments or the shell environment provided by NNW is different than I might expect. Unfortunately, I can't find a way to print out what's actually getting through to my program, so I have no way of figuring out what the deal is.
Does anyone know? Does NNW perform special parsing of arguments, or is there something weird about the shell environment it presents to scripts? Has anyone gotten arguments to work with shell scripts?
Thanks!
|
|
|
|