diff options
Diffstat (limited to 'expect/example/timed-read')
-rwxr-xr-x | expect/example/timed-read | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/expect/example/timed-read b/expect/example/timed-read new file mode 100755 index 00000000000..8c698960117 --- /dev/null +++ b/expect/example/timed-read @@ -0,0 +1,6 @@ +#!../expect -f +# read a complete line from stdin +# aborting after the number of seconds (given as an argument) +# - Don Libes +set timeout $argv +expect -re \n {send_user $expect_out(buffer)} |