shell - automate input procedure to a binary file -
I have a binary file on UNIX, which is executed when the user asks for input. The input of this binary file has been given manually.
I want to automate the process, because I already know the input. I can not modify the binary file. How can I do it? Is it also possible with the If you need some complex, look in the package. shell script or
ant target? Simple input redirection can work:
$ binaryFile & Lt; & Lt; EOF Input Line 1 Input Line 2 Input Line 3 EOF
Comments
Post a Comment