Streaming in values without defined command line arguments
If I wish to use a utility that has two prompts during command execution, how can fill these values in at command execution, with the fact that there are no defined command line arguments to receive the data?
Examples:
[hostname]# math_program
Enter value 1: [ user input 4 ]
Enter value 2: [ user input 4 ]
Value 1 + 2 = 8.
[hostname]#
If the above application has no command line arguments, how can I stream in the data so the OS can recieve the app name and the two prompted values, where it can be accepted to do it's functionality.
|