Does anyone know...
The project is going good. I thought I might fish for some more suggestions however, as I haven't been able to come up with an answer to this questions:
Overview: I have the search form page, when form is submitted, the search parameters are written to a cookie, which is then retrieved by the search script running on the local system. (for gory details on how the script is launched, see above)
I originally was returning the search results by using: open -a Firefox file. This however opens the results up in a new tab or window, which I would prefer not.
I can use a page redirect to go to the search results page after the script runs, and then the results will open up in the same page, great.
Firefox uses an SQLite database file for cookies, which makes it a little bit tougher than just dealing with a text file. It is actually a binary file, however, the cookie name and value show up in ASCII characters, so it is possible to find the values and extract them using sed and perl. This is how I pass the search parameters to the search script in the first place. I contain the value of the cookie in two obscure strings (eg jfhrutifj875869-cookie value-jdueifkf85746) and this way I can locate them in the midst of all the binary stuff by doing a regex search for the two identifiers. Works great.
I don't really know anything about SQLite, so if someone can enlighten me on how to deal with this, I would much appreciate it. The point is, I would like to write to Firefoxes cookie database from a shell script. If anyone knows any way whatsoever to do this, it would make me very happy.