> Hi,
> A certain program asks for password. I need to enter 'newline at this
> prompt'. How can I automate this? I tried
> echo | program
> but it doesn't work. Apparently, password isn't read from stdin, but maybe
> from some other stream. What else can I try instead of echo | program?
> Thanks
> Wroot
Here is a sketchy possible strategy:
There is a perl library for telneting and
reading and writing to/from a remote site
and doing complex key stroke responses.
There are probably other programs that do
telnet scripts. Maybe you can use them to
log into your own PC and excute the program
and get replies. I'm not sure if that
does or doesn't overcome the stdin limitation.
But, it is a germ of an idea.
--
David Pace - Free commodity/stock graphing software
and Linux links at http://www.daveware.com