in reply to Re^4: How to pass CTRL-C to child script only
in thread How to pass CTRL-C to child script only

Why don't you simply have a prompt at log-on, saying "Enter username (Q to quit)" and then test for "Q" and do what you need to do in that case?

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re^5: How to pass CTRL-C to child script only