Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 15 Apr 2005 @ 13:24:46 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


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.



     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023