[Tutor] pass argument into running program *outside* of program
Alan Gauld
alan.gauld at btinternet.com
Sat Aug 23 01:47:44 CEST 2008
"Lie Ryan" <lie.1296 at gmail.com> wrote
>> sharing a database and using one table for input and another
>> for output. The server polls the input table and writes output to
>
> In a much simpler situation, even a communicating from a plain file
> could be enough. In the daemon's program folder, there'll be two
> files:
The problem with text files for this is that it seriously limits
the number of clients because locking is applied at the file
level, whereas with a database locking is generally applied
at the row level. Also databases tend to support triggers that
only fire the server process when something actually gets
written. For files you really need to poll the file (although
some OS might support select() monitoring of a file - but
by then sockets are easier! :-)
But if you only have one client then a file will certainly work
just as well.
Alan G
More information about the Tutor
mailing list