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 shell script or ant target? Simple input redirection can work:

  $ binaryFile & Lt; & Lt; EOF Input Line 1 Input Line 2 Input Line 3 EOF   

If you need some complex, look in the package.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -