expect demonstration
Posted to
tcl
by rmax at Wed Oct 06 09:45:50 GMT 2021
view raw
if
{
$argc
== 1} {
for
{
set
i 0} {
$i
< 10} {
incr
i} {
puts
$i
after
1000
}
}
else
{
package
require Expect
spawn
$argv0
x
expect 5 {
puts
"got five!"}
}
Recent Posts
lilypond by Bradipo
10 hours ago
tcl by cgm
10 days ago
tcl by dandyn
19 days ago
tcl by Stu
20 days ago
tcl by dandyn
22 days ago
tcl by Stu
24 days ago
tcl by philbr-t
30 days ago
tcl by arjen
31 days ago
tcl by brain
38 days ago
tcl by mjanssen
40 days ago
Submit
New paste
Documentation
From Jabber