in reply to Understanding Code which uses pipe to bulk copy data
Do something like this:
Create a named pipe:
Start a bcp-session:mknod /tmp/bcp-pipe p
And then you can read from that pipe in your perl program:bcp mydb..mytable out /tmp/bcp-pipe -c -Uuser -Sserver
open FIFO, '/tmp/bcp-pipe' or die "cannot open /tmp/bcp-pipe: $!\n"; while (<FIFO>) { print "bcp-data: $_"; } close FIFO;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Understanding Code
by dreman (Acolyte) on Aug 20, 2001 at 17:48 UTC | |
by busunsl (Vicar) on Aug 20, 2001 at 17:53 UTC |