'piping' text to an application that reads from the cli

Status
Not open for further replies.

sigmend

[H]ard|Gawd
Joined
Aug 6, 2003
Messages
1,303
Hey all,
I have a problem, I am trying to pipe text to an application that tries to read from the cli, but I want its input to come from a script
..


Confused? well here is an example
Code:
crappylappy:~ matt$ /Some/File.ext
Asking for user input:
2
You typed '2'
I want to be able to type 2 without actually typing 2 myself, I want the two to come from a script.
 
wait, never-mind I figured it out

I was able to put the info in a text file then pipe the text file using < to the app

edit: oh and :lock:
 
Status
Not open for further replies.
Back
Top