Rogue black-box java application not responding to standard input redirect

Posted by Stefan Kendall on Stack Overflow See other posts from Stack Overflow or by Stefan Kendall
Published on 2010-03-18T18:18:20Z Indexed on 2010/03/18 18:21 UTC
Read the original article Hit count: 471

I have an external java application (blackbox), which requires authentication. I need to run this application in a batch setting, but it seems to be reading from standard input in some nonstandard way. That is, if I set the calling of the program to redirect STDIN to a file (... <password.txt) or pipe data to it (echo mypasword | ...), it does not recognize the input. As I run it, also, it seems to intercept Cntrl+c and Cntrl+d and Cntrl+z as legitimate password characters, so it must be doing something odd and not just reading from standard in.

Any idea what this application could be doing to read in input? I need to be able to send it information programmatically, and I'm stumped for the moment.

© Stack Overflow or respective owner

Related posts about java

Related posts about input-output