Thread
:
what is this called
View Single Post
Jun 19th, 2006, 9:00 AM
#
6
jim mcnamara
Hobbyist Programmer
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power:
4
Do you know about the here document?
(
Toggle Plain Text
)
/path/to/myprogram $USER $PASS<<EOF answer to question 1 output file filname EOF
/path/to/myprogram $USER $PASS<<EOF answer to question 1 output file filname EOF
This is essentially what expect does. It knows the questions and answers ahead of time.
jim mcnamara
View Public Profile
Find More Posts by jim mcnamara