Re: *NIX shell scripting question (or possibly other scripting methods)
By: Khelair to All on Sat Nov 10 2012 08:43 am
> Can any shell script wizards out there tell me if there is a way using
> 'sh' or 'ksh' to enclose a block of script in some kind of structure that
> will try to execute something, wait for a predetermined amount of time, and
> then if there is no user input on the keyboard for that period of time,
> execute another block of code or else just skip what was going on entirely?
I'm not sure exactly what you're asking for... a prompted input with a timeout?
---
http://DuckDuckGo.com/ a better search engine that respects your privacy.
■ Synchronet ■ My Brand-New BBS (All the cool SysOps run STOCK!)
|