OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [expect/] [example/] [irsh] - Blame information for rev 578

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
#!/depot/path/expect --
2
 
3
# Do rsh interactively.  For example, consider the following command:
4
#    rsh  ls -l "|" more
5
# where it would be nice to get a listing page by page
6
 
7
spawn -noecho rlogin [lindex $argv 0]
8
set timeout -1
9
expect "% "      ;# customize appropriately
10
send "[lrange $argv 1 end];exit\r"
11
interact

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.