HP3000-L Archives

May 2001, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"VANCE,JEFF (HP-Cupertino,ex1)" <[log in to unmask]>
Reply To:
VANCE,JEFF (HP-Cupertino,ex1)
Date:
Mon, 21 May 2001 10:35:25 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
> Does anybody know of a little utility program that can be placed in a
batch
> job that would then prompt the console for a reply and it would then set a
> variable based on the reply before moving on?  I'm not looking for
variable
> replacement at stream time but rather variable creation during execution
of
> a job.

On 6.5 you can do the following in your job:

!job xxx,yyy.zzz...
!...
!input reply_var,"Prompt to console";readlen=L;wait=W;default=D;CONSOLE
!# you have the console operator reply in the variable named "reply_var".
!...
!eoj

L -- allows you do limit the number of characters accepted as input
W -- causes the input command to complete even if no reply is given,
     after a specified number of seconds
D -- let you define a default value in the case of no reply or a timeout

HTH,
 Jeff Vance, CSY

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2