From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,790959c973176192,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1994-07-12 08:33:52 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!EU.net!sunic!news.funet.fi!hydra.Helsinki.FI!usenet From: alex@nmt.edu (Alex Kent) Newsgroups: comp.os.linux.announce Subject: qprompt - script prompt util Followup-To: comp.os.linux.misc Date: 12 Jul 1994 15:19:36 GMT Organization: New Mexico Tech Message-ID: <2vuca8$cl6@hydra.Helsinki.FI> NNTP-Posting-Host: hydra.helsinki.fi Keywords: shell scripts .login prompt csh tcsh Qprompt is a simple shell utility that works excellent in interactive scripts (like .login). It takes single character input and returns a corresponding exit code based on the response. It has several command line options, including a timer. I have uploaded it to sunsite.unc.edu where it should (hopefully) go into /pub/Linux/utils/shell. There is a linux executable and a man page included. A few example possiblities of how it can be used in a .login are also included. Its short and its simple, but maybe some other folks can find it as useful as I have. Here is the .lsm for it: Begin2 Title =qprompt Version =2 Desc1 =A single character prompting utility with optional timer. Desc2 =For use in shell programming, excellent for login scripts. Desc3 =Uses exit codes to pass on which option was selected, simple Desc4 =command line options. Short and simple. Author =Alex Kent AuthorEmail =alex@nmt.edu Maintainer =Alex Kent MaintEmail =alex@nmt.edu Site1 =sunsite.unc.edu Path1 =/pub/Linux/utils/shell File1 =qprompt.tar.gz FileSize1 =7249 Required1 =Not much, besides a shell that excepts exit codes CopyPolicy1 =Feel free to trash, hack or rewrite it to your heart's content Keywords =shell script prompt Comment1 =Includes linux binary, man page and examples. Entered =Sat Jul 9 21:00 1994 EnteredBy =Alex Kent CheckedEmail =alex@nmt.edu End -- ----------------------------------------------------------------------------- Alex Kent | www: http://nmt.edu/~alex email: alex@prism.nmt.edu | office phone: (505)835-5437 alex@minos.nmt.edu | home phone: (505)835-6236 -- Mail submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu PLEASE remember Keywords: and a short description of the software.