Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!stubby!skip From: skip@stubby.UUCP (Skip Koppenhaver) Newsgroups: comp.unix.wizards Subject: Can you redirect /dev/tty? Message-ID: <330@stubby.UUCP> Date: 20 Jul 90 18:26:08 GMT Reply-To: skip@stubby.UUCP (Skip Koppenhaver) Organization: Digital Analysis Corporation, Reston, VA Lines: 20 Dear Mr. Wizard: Is it possible to redirect input to a program which opens /dev/tty? For example, I am trying to redirect input to the ftam program (OSI`s bigger and better ftp :-). The problem is that when ftam prompts for the password it opens /dev/tty to read it, so standard I/O redirection doesn't cut it. I have a feeling this was intentional for security reasons. However, I need to bypass this mechanism if possible. I was able to do the same sort of thing with ftp by using the -n option and the ftp "user" command which reads the password from stdin. But ftam has no such options or commands. BTW, modifying ftam source is not an option. ====================================================================== Skip Koppenhaver | Digital Analysis Corp. | (This space is uunet!stubby!skip | 1889 Preston White Dr. | intentionally (703) 476-5900 | Reston, VA 22091 | left blank)