try this
Posted to
tcl
by mjanssen at Fri Jul 22 17:18:00 GMT 2011
view raw
#!/usr/bin/expect -f
log_user 0
spawn "/bin/ls"
expect
eof
puts
" this is the outptu ---> '
$expect_out(buffer)
'."
Recent Posts
tcl by JMN
13 mins ago
tcl by mookie
17 hours ago
tcl by ACfromTX
11 days ago
tcl by emiliano
12 days ago
tcl by mookie
13 days ago
tcl by schelte
17 days ago
tcl by oldlaptop
30 days ago
tcl by mookie
36 days ago
tcl by dandyn
42 days ago
tcl by Bradipo
42 days ago
Submit
New paste
Documentation
From Jabber