My understanding of pipe is that if one creates a text file of commands for example menu commands for an application
then it can be piped to the application to automate it.
app < TextFileWithCmds.txt
assume asp has a 3 level menu where we would want to go to level 3 and enter in a set of info which never changes:
x
m
2
9
arcst
/usr/acct/arcst.txt
q
x
When I enter this data into a file then use the pipe method it appears the app throws this all away and just hangs on the first step.
I also tried cat TextFileWithCmds.txt | app
Am I missing something or is the application just not using standard I/O properly (maybe on purpose)?
then it can be piped to the application to automate it.
app < TextFileWithCmds.txt
assume asp has a 3 level menu where we would want to go to level 3 and enter in a set of info which never changes:
x
m
2
9
arcst
/usr/acct/arcst.txt
q
x
When I enter this data into a file then use the pipe method it appears the app throws this all away and just hangs on the first step.
I also tried cat TextFileWithCmds.txt | app
Am I missing something or is the application just not using standard I/O properly (maybe on purpose)?