Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v8plus / bin / timed-read
CommitLineData
920dae64
AT
1#!/bin/sh
2# \
3exec expect -f "$0" ${1+"$@"}
4# read a complete line from stdin
5# aborting after the number of seconds (given as an argument)
6# - Don Libes
7set timeout $argv
8expect -re \n {send_user $expect_out(buffer)}