The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
FTP user information on destination server randhir HP-UX 3 03-10-2008 05:11 PM
User friendly Unix ksh prompt to type directories/files abdurrouf UNIX for Advanced & Expert Users 3 02-15-2008 02:07 PM
rsh as super user without password prompt TheMightyUrrrrf UNIX for Dummies Questions & Answers 1 02-13-2008 06:50 AM
user prompt doesn't pop up with rsh command ronenalalush UNIX for Advanced & Expert Users 1 02-13-2007 02:45 AM
User Prompt during batch script process bond007jlv Shell Programming and Scripting 2 11-30-2006 11:12 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2006
Registered User
 

Join Date: Feb 2006
Location: USA
Posts: 1
Prompt User for Pgm Output Destination

SCO Open Server 5

A program that I am working with outputs data to a system or printer with the traditional output
> lp [-options] [system-printer]

This output line along with some other job output formatting information is stored as a defined output within the program so that the average user scrolls the list of defined outputs, such as, HPLaser1, and the corresponding settings and destination are handled.

I am working with a fax package for the system which, in the majestic simplicity of UNIX, works much the same as above. The output sequence is
> fax [-options] [phone-number]

again..

> fax -a -t 5551212

This is great for setting up as a standard destination within the program as long as the user always wants to select "FAX-Office2", knowing that the output always needs to go to the fax machine in office2 with the phone number 5551212.

How can I create an output sequence that would prompt the user to input the destination digits? The goal is for the user to select "OutboundFAX"... Which is already defined as a destination in the software of

> fax -a -t [prompt user for destination phone number]

System would respond:
"Please enter fax phone number"
?

After receiving input, system would proceed

> fax -a -t uservariable

Thanks,
Reply With Quote
Google UNIX.COM
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0