dmcdougald has asked for the wisdom of the Perl Monks concerning the following question:
I am a perl neophite and can hardly get hello world to work right =) but I can fudge through everything except the monitor output, if no output in 10 seconds auto sigint and return to script sub-procedure. any help / advice is appreciated.#!/usr/bin/bash re-enable () { commands here to re-enable the NE echo -n "Press ENTER to continue" ; read a main-menu } check-NE () { trap 're-enable' 2 command series that hangs echo -n "Press ENTER to continue" ; read a main-menu } main-menu () { choices with read a case $a 1) re-enable;; 2) check-NE;; .. 8 case statements *) exit;; } main-menu
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with SIGINT
by Velaki (Chaplain) on Oct 31, 2004 at 14:36 UTC | |
|
Re: Help with SIGINT
by Anonymous Monk on Oct 31, 2004 at 20:04 UTC |