Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 24 Aug 2004 @ 11:40:19 GMT


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


Subj:   Re: How to pass the User-ID and Password on a Command-Line
 
From:   Heard, Duncan

In that case modify your wrapper to read the script from a file (rather than just passing it to the utility in your system call), adding the .logon command (which you build containing the username and password passed in to the wrapper) to the top of the script, then send it to the fastexport utility via stdin.

There are plenty of examples in the MS SDK and on the internet of calling an external executable passing text via stdin to it, and reading the output via stdout.

Or you could just use perl to do all this in a couple of lines and call this perl script rather than your C++ wrapper - perl is just made to do this sort of thing! ;-)


Regards,

Duncan Heard



     
  <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