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 trying to set
up my different runlevels so that if my machine ends up rebooting or being
rebooted for some reason while I'm out of town it'll skip mounting of the
encrypted partitions; I really still want to have that bit called from the
startup scripts, though, instead of having to log in and su to root and all of
that crap after booting to mount the encrypted partitions.
TIA
-=-
Opinions expressed are not necessarily those of the owners or management of
this corporeal rotting porksuit.
-=-
---
■ Synchronet ■ Tinfoil Tetrahedron : telnet bismaninfo.hopto.org 8023 : http:80
80
|