[Classiccity-pm] Timeout
nathan r. hruby
nhruby at uga.edu
Thu Mar 2 09:50:08 PST 2006
On Thu, 2 Mar 2006, Linda Dubes Law wrote:
> Paul Keck made me join this list because he was jealous of Leslie Grove
> because she got to have all the fun of helping me solve all of my
> interesting perl problems. Just kidding.
>
> Here is today's problem:
>
> Running on HP/UX, certain users login and are thrown into a perl menu
> script. They can go from there to other perl scripts that I want to time
> out after a very short time compared to the menu. They can also go to third
> party software but always end up back at this menu and thrown out of the
> system when they quit the menu. The third party software has its own
> timeout function that works great and has to stay because many of the users
> only see the third party software. Not everyone gets the pleasure of seeing
> the results of my scripts.
>
> Anyway, is there something that I can put between these two lines that will
> kick the user out of the system while the script is waiting for input?
>
> print "\n\n Q or q to quit : ";
>
> chomp ($task = <STDIN>);
>
"perldoc -f alarm" and rejoyce!
--
-------------------------------------------
nathan hruby <nhruby at uga.edu>
uga enterprise information technology services
core services support
-------------------------------------------
"In 1972 a crack commando unit was sent to
prison by a military court for a crime they
didn't commit...."
More information about the Classiccity-pm
mailing list