![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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, |
|||
| Google UNIX.COM |
| Forum Sponsor | ||
|
|