Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!hao!noao!stsci!itkin From: itkin@stsci.EDU (Elliot Itkin) Newsgroups: comp.sys.amiga Subject: Re: Input from keyboard in startup-sequence Message-ID: <253@ra> Date: 3 Mar 88 14:00:45 GMT References: <1128@raybed2.UUCP> Distribution: na Organization: Space Telescope Science Institute, Baltimore, MD 21218 Lines: 31 In article <820@umbc3.UMD.EDU>, ken@umbc3.UMD.EDU (Ken Spagnolo ) writes: > I would like to have an if-then-else structure in my startup-sequence > that would prompt me to see if I wanted to load up certain files (or > whatever). But I don't know how to get it to wait for input from the > keyboard during startup. Even EXECUTE needs to see the args on the > command line that calls it. Anyone pull this off? Thanx. Has someone answered this already? An easy way to do it is: ECHO "Enter RAM, NORAM, or NOWB" SKIP ? LAB RAM [RAM stuff here] SKIP ALLDONE LAB NORAM [NORAM stuff here] SKIP ALLDONE LAB NOWB [NOWB stuff here] LAB ALLDONE [rest of startup-sequence] Although the above is real simple, the problem with it is typeos. A typing mistake causes the "SKIP ?" command to blow up, but there are ways around that too, but who cares. If you type wrong, just re-boot. Also, it seems slows. My sarcastic guess is that CLI reads the file one I/O per character. -- Elliot S. Itkin Space Telescope Science Institute, Baltimore, MD 21218 UUCP: {arizona,decvax,hao,ihnp4}!noao!stsci!itkin ARPA: itkin@stsci.edu SPAN: {SCIVAX,KEPLER}::ITKIN