Re: bi-directional fifo help



Ok, so perhaps a FIFO isn't what I want??

What I want is a persistant DB connection on the daemon that always
runs.. Then I was to somehow (pipe, FIFO, ??) get data into the daemon
and it will give me a reply.. However the daemon needs to continuously
be running and be capable of serving multiple simultanious request..

Part of what I'm trying to do here is to take a funciton that requires
very fast database lookups that doesn't support the db query natively
(can execute an external script and use result data) and I'm trying to
eliminate the delay you get from connecting and disconnectiing to the
DB.. However I might just be replacing it with delay connecting and
disconnecting the socket..

As a side note, my daemon also caches the DB data and checks to see if
a local cache is available before it performs the query.. So all that
being said, the daemon needs to keep running and I need to throw data
at it.

Any ideas?
Thanks!
-Brett

.



Relevant Pages

  • Re: ssh gives "Permission denied, please try again"
    ... if the sshd daemon doesn't show a string of debug statements ... you're not connecting to that sshd daemon. ...
    (uk.comp.os.linux)
  • Re: Executing a Script every hour
    ... Never played around with that language, ... have the ppp daemon run your script as soon as it finishes connecting. ... Then, instead of running your script every hour, have the daemon connect ...
    (Debian-User)
  • daemon receives signal number 17
    ... I wrote a daemon that does nothing more than connecting to an imap box ... I log each signal the daemon receives to syslog. ...
    (comp.mail.imap)
  • Re: [PATCH] to drivers/input/evdev.c to add mixer device "/dev/input/events"
    ... But Vojtech is right that the kernel should not read ... Is the kernel really needed for this trick, or could a daemon similiar to ... it is there) and writes to a FIFO. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Keep only the tail of the dataset
    ... pipe (FIFO) to be read by a chopping daemon. ... be allocated and the daemon started in a prior job step. ... RDWs from z/OS to Linux. ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)