#!../expect -f
# read a complete line from stdin (minus terminating newline)
# aborting after the number of seconds (given as an argument)
# - Don Libes
set timeout $argv
expect -re "(.*)\n" {send_user $expect_out(1,string)}
