Shell script to input as if from command line to the java program

view full story

http://www.unix.com – Hi, We are having a java server which can run on command line and once initiated, it will prompt options to enter from 0 to 5. The java program kickoff respective operation once number is entered between 0 to 5. However i want to always enter "1" and write another shell program wrapper to start this java program and provide "1" as input so that the server will perform respective operation. can some one help me in this regard? Thanks, Surya (HowTos)