Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > a68a11d7b2fdd65fa640544faac65cb2 > files > 26

expect-examples-5.43.0-26.mga5.x86_64.rpm

#!/depot/path/expect --

# Do rsh interactively.  For example, consider the following command:
#    rsh <remote> ls -l "|" more
# where it would be nice to get a listing page by page

spawn -noecho rlogin [lindex $argv 0]
set timeout -1
expect "% "      ;# customize appropriately
send "[lrange $argv 1 end];exit\r"
interact