interesting. what does your script do exactly. just curious.
i don't think using a FIFO to do this is a good idea. think about what a FIFO is: first in first out. try stepping through the reading and writing between the two processes on paper and be sure to draw your FIFO for each step. there is going to be some horrible unavoidable deadlock here. its just not possible with a fifo, unless you are also the author of the browser.
i'd try something else. do a diff on the bookmarks file. i don't know... there's gotta be a better way than that though.
if you give more context to what you are trying to do, maybe i could give a better suggestion. | [reply] |
| [reply] |
Basically what I'm trying to do is assemble a program that will serve a common set of bookmarks to browsers from a centralized location. i.e. There'd be a server that would have the actual bookmarks stored, and clients would reference it when the FIFO was read from by the browser, tell the server about new bookmarks that have been added or changed on their end, etc.
I suppose I could just have the clients keep an eye on the bookmarks file for changes, and diff it, but I was hoping for something a little more transparent and a FIFO seemed like a good idea, until I actually started trying to code it anyway. :) | [reply] |