LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 05-06-2004, 11:21 PM   #1
liguorir
Member
 
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?

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.
 
Old 05-07-2004, 03:40 AM   #2
|2ainman
Member
 
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
 
  


Reply


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 03:06 PM
Awk command-line arguments lowpro2k3 Programming 1 03-28-2005 10:09 PM
number of command line arguments to shell u4u Linux - General 1 03-04-2005 07:09 PM
Help with command line arguments ? synapse Linux - Newbie 2 02-23-2004 03:25 AM
Command line arguments to java program Majjj Programming 3 10-23-2003 06:48 AM


All times are GMT -5. The time now is 05:01 PM.

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