echo RIing $1
pattern reset
open
pattern 1 "(UA RE T)"
pattern 2 unction:
send "ri "
send $1
send \m
wait
if match 2 end
send \m
: end

