if the program need two input files

Frank Lee lifei03 at gmail.com
Sat Jun 4 07:57:01 UTC 2005


I have a program which waiting for the input  from from keyboard for
more than two times.  Say,

#./my_program
please input your input filename: (waiting for input from keyboard for
the first time)
please input your output filename: (waiting for input from keyboard
for the second time)


Because I need write a shell script to use this program for many
times.   I do not how to avoid the interactive requirement of this
program.  It seems it can not be solved by use

#./my_program <<input_file  >>output_file

Expecting your suggestions.


Thanks very much!

-- 
Do not guess who  I am.  I am not Bush in BlackHouse




More information about the redhat-list mailing list