This time you have to write a simple "wrapper" code to allow the use of an interactive command-line program through a socket connection. While this can be achieved by piping your command to nc or sock commands, you are required to do this by yourself in Java language.
A brief explanation on how you can launch an external program and access its input and output is provided. You have till May 26th, 2010.
A sample implementation is provided too, but please note it won't work in a Windows computer (unless /usr/bin/bc command is found on your system).
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment