Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!decvax!decwrl!ucbvax!GRINNELL.MAILNET!McGuire_Ed From: McGuire_Ed@GRINNELL.MAILNET.UUCP Newsgroups: mod.computers.vax Subject: RE: Inquire/for 10 seconds only Message-ID: <8608010608.AA11445@ucbvax.Berkeley.EDU> Date: Wed, 30-Jul-86 19:06:00 EDT Article-I.D.: ucbvax.8608010608.AA11445 Posted: Wed Jul 30 19:06:00 1986 Date-Received: Fri, 1-Aug-86 08:45:11 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 41 Approved: info-vax@sri-kl.arpa >Date: Tue, 29 Jul 86 17:24:15 pdt >From: Peter Stokes >Subject: "Inquire/for 10 seconds only" > >I would like to add a line or two to our systartup.com that >would ask the user if he wanted a test boot only. If he >answered yes, logins would be set to zero and no "system up" >announcement would be made. If no answer was typed in, the >question would time-out in a given amount of time like 10 >seconds for example. Anybody know a quick and dirty way to >do this ?? I.E. INQUIRE/TIMEOUT=00:10 ?? Yes, there is a way to do that. The startup procedure runs as a batch process with input STARTUP.COM and output OPA0:. What you can do is assign a second channel to OPA0: and query the user with a timeout: $!+ $! Find out if operator wants to bring up single-user mode. $!- $ OPEN/READ CONSOLE _OPA0: $ READ/TIME_OUT=10/ERROR=MULTIUSER/PROMPT="Single user? " CONSOLE SINGLE $ IF .NOT. SINGLE THEN $ GOTO MULTIUSER $!+ $! Operator wants system up in single-user mode. $!- $ CLOSE CONSOLE $ . $ . $ . $ EXIT $!+ $! Operator wants system up for timesharing, or did not respond to question. $!- $MULTIUSER: $ CLOSE CONSOLE $ . $ . $ . $ EXIT This should give you the idea, anyway. Hope it helps!