Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-06-2004, 10:21 PM   #1
Registered: May 2003
Posts: 256

Rep: Reputation: 30
Question 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?


[hostname]# math_program
Enter value 1: [ user input 4 ]
Enter value 2: [ user input 4 ]
Value 1 + 2 = 8.

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.
Old 05-07-2004, 02:40 AM   #2
Registered: Mar 2004
Distribution: Slackware current, DSL 0.9.2
Posts: 133

Rep: Reputation: 15
either math_program < echo "4 4"
or maybe echo "4 4" > math_program


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
alsamixer command line arguments dereko Debian 3 09-29-2008 02:06 PM
Awk command-line arguments lowpro2k3 Programming 1 03-28-2005 09:09 PM
number of command line arguments to shell u4u Linux - General 1 03-04-2005 06:09 PM
Help with command line arguments ? synapse Linux - Newbie 2 02-23-2004 02:25 AM
Command line arguments to java program Majjj Programming 3 10-23-2003 05:48 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration