Re: Proposed patch to datacopy to allow passwords to be read from stdin
Frediano Ziglio <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
Il giorno 24/ago/2012, alle ore 19:06, "James K. Lowden" <[email protected]> ha scritto: > On Thu, 23 Aug 2012 01:16:24 +0000 (UTC) > Stuart Henderson <[email protected]> wrote: > >>> called "getpass". Now the command: >>> >>> datacopy -S$S/$U/$(getpass $S)/$D/$T ... >>> >>> does the job. >> >> This still shows in the command line, though. > > No, what shows on the command line is "$(getpass $S)". That's what you > type in; that's what shows in ps(1). That's what will be in any log of > the script. > > We seem to be talking past each other. What are you referring to? > Hi, James, the shell expand the command so in ps you see the password. Perhaps environment is more safe and hard to read but I think pipe or external file are better. Frediano