Door Games Unlimited

Welcome, Guest.


Subject: *NIX shell scripting ques Date: Tue Nov 13 2012 11:24:00
From: Deuce To: Khelair

  Re: *NIX shell scripting question (or possibly other scripting methods)
  By: Khelair to Deuce on Mon Nov 12 2012 11:06 am

 >     After a little bit of research somebody on a DOC BBS that I'm a member
 > of ended up mentioning that bash's 'read -t' function might be able to do
 > what I'm looking for; it dies and returns failure after the specified
 > number of seconds if there has been no keyboard input.  I was hoping to be
 > able to stick with the native 'sh' or 'ksh' shells, but if I have to call
 > bash for a small segment of the shell script it might still not be such a
 > bad alternative.

read is a shell builtin for every Bourne style shell I've seen.  It's external 
                                                                               t
o csh and tcsh I think though.

If not, the systen should have a read command too in /usr/bin.

---
http://DuckDuckGo.com/ a better search engine that respects your privacy.
 ■ Synchronet ■ My Brand-New BBS (All the cool SysOps run STOCK!)

Previous Message       Next Message
In Reply To: *NIX shell scripting ques (Khelair)