Re: piping input to executable reading from /dev/tty?

2012-06-20 Thread Dan B.
Eric Blake wrote: On 06/20/2012 10:33 AM, Dan B. wrote: Is there any way to redirect /dev/tty similarly to how stdin can be redirected (e.g., like "echo ... | someexecutable")? Yes; use 'expect'. Does Cygwin (or Unix/Linux, for that matter) have any equivalent way of

piping input to executable reading from /dev/tty?

2012-06-20 Thread Dan B.
Is there any way to redirect /dev/tty similarly to how stdin can be redirected (e.g., like "echo ... | someexecutable")? I'm working with an executable (openssl in ocsp mode) that reads a password via /dev/tty (instead of stdin) because normally it wants to get that password from the user even i