Expect notes

From Federal Burro of Information
Revision as of 04:51, 24 September 2011 by David (talk | contribs) (Created page with "timing stuff in expect: <pre> #!/usr/bin/expect set timeout 60 set now [clock seconds] puts "some\n"; puts "some\n"; puts "some\n"; puts "some\n"; puts "some\n"; set later [cloc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

timing stuff in expect:

#!/usr/bin/expect
set timeout 60
set now [clock seconds]
puts "some\n";
puts "some\n";
puts "some\n";
puts "some\n";
puts "some\n";
set later [clock seconds]
puts "[expr {$later - $now}]"