in reply to Not able to timeout

Use sysread instead of getline() would be my first suggestion.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh