Archives of the TeradataForum
Message Posted: Fri, 15 Apr 2005 @ 13:24:46 GMT
Subj: | | Re: Connecting to a Fastload Named Pipe from non-TD program |
|
From: | | Geoffrey Rommel |
| I am executing the FastLoad from a script, then I am trying to tap into the pipe from a C# program (which calls a win32 api, CallNamedPipe)
to write the data. | |
Uh-oh. Are you running from Windows? My example was for Unix; I don't know whether Windows supports fork.
In a Korn shell script, you would do something like this:
function pipe_reader() {
fastload < my-fld-script > my-fld-output
# my-fld-script contains the name of the named pipe
}
pipe_reader &
sleep 2
c#-program > named-pipe
wait
Maybe there is a Windows way to do this.
I only read these messages once a day, so, if you'd like me to confuse matters further, write to me directly.
|