Re: Named pipe



(In addition to Clive's comments.)

On Fri, May 26, 2006 at 09:28:37AM -0700, Loo, Peter # PHX wrote:

The problem I am having is, when I execute "INSERT INTO real_table
SELECT * FROM ex_table" before I start writing to the named pipe, this
process immediately stops because there is no data to SELECT. But if I
start writing to the named pipe before starting the "INSERT INTO", I may
miss some data.

I was wondering if anyone might have an answer as to how I can sync the
start up of the write and INSERT INTO at the same time or perhaps some
other method.

So the steps go something like,

open the pipe for writing
start the process which reads the pipe
start writing to the pipe.

Tim.
.



Relevant Pages

  • Re: pipes - at least, I think thats what they are
    ... pipe exists as a file, so writing to it is just like writing to a file. ... A process trying to write to a named pipe with nothing reading it will ...
    (uk.comp.os.linux)
  • Re: NetCat (nc) + xxd usage
    ... using redirectors on normal files for exec ... An openfor writing on a named pipe returns when the named ...
    (comp.unix.shell)
  • Re: Running a command-line program and reading/writing its stdin/stdout/stderr
    ... > The reason it fails is that the 2 ends of the pipe are not ... one is only good for writing, the other only for reading. ... The reason why i begun writing this program (that is only at its early ...
    (comp.os.linux.development.apps)
  • Re: NetCat (nc) + xxd usage
    ... An openfor writing on a named pipe returns when the named ... Same thing in reverse for reading. ...
    (comp.unix.shell)
  • Re: Why is my overlapped WriteFile getting blocked? (repost)
    ... now the issue is: You are using overlapped IO in named pipe programming. ... In client side, in NPClient, in ClientDlgProc function, in IDB_SEND, we revised the code as the following: ... beginning writing pipe... ... Now we are leaving ERROR_IO_PENGING... ...
    (microsoft.public.win32.programmer.networks)