|
|
Archives of the TeradataForum
Message Posted: Tue, 24 Aug 2004 @ 11:40:19 GMT
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
| |