URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [insight/] [expect/] [example/] [telnet-cwd] - Rev 1776
Go to most recent revision | Compare with Previous | Blame | View Log
#!../expect --
# telnet-cwd - telnet but with same directory
#
# You can extend this idea to save any arbitrary information across telnet
# Don Libes - Oct 17, 1991.
set prompt "(%|#|\\$) $" ;# default prompt
catch {set prompt $env(EXPECT_PROMPT)}
eval spawn telnet $argv
interact -o -nobuffer -re $prompt return
send "cd [pwd]\r"
interact
Go to most recent revision | Compare with Previous | Blame | View Log