1#!../expect -f 2# read a complete line from stdin 3# aborting after the number of seconds (given as an argument) 4# - Don Libes 5set timeout $argv 6expect -re \n {send_user $expect_out(buffer)} 7