Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!news.cs.indiana.edu!nstn.ns.ca!aucs.acadiau.ca!peter From: peter@aucs.AcadiaU.ca (Peter Steele) Newsgroups: comp.unix.shell Subject: How to do non-blocked I/O? Message-ID: <1991Jun5.114741.8167@aucs.AcadiaU.ca> Date: 5 Jun 91 11:47:41 GMT Article-I.D.: aucs.1991Jun5.114741.8167 Reply-To: peter@aucs.acadiau.ca (Peter Steele) Distribution: na Organization: School of Computer Science, Acadia Univ., Nova Scotia Lines: 11 I want to modify our system startup scripts to ask a question like Okay to bring up databases (y/n)? and if there is no reply within, say 5 seconds, assume "y". Can I do this from sh or csh or do I have to write a C program to do the I/O? If a C program is required, can someone point me to the best reference on how to do non-blocking I/O? Thanks. -- Peter Steele Postmaster peter.steele@acadiau.ca Tel: 902-542-2201 Software Analyst, Acadia University, Wolfville, NS Fax: 902-542-7224