Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

basic script problem..

Status
Not open for further replies.

xiaoleiqq

Programmer
Aug 30, 2006
43
US
Hi,

I have a program that ask for user input during process. Right now I want to create a script that can automatically fill in the user input from the script, how should I do that?

Thank you very much.
 
how should I do that?
You have to know how the program grabs info: from /dev/tty ? stdin ? ...


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
It is from stdin, the program is written in c, but I dont have the source code.
 
So create a response file, say response.txt and then:
yourProgram < /path/to/response.txt

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top