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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [insight/] [expect/] [example/] [telnet-cwd] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
#!../expect --
2
# telnet-cwd - telnet but with same directory
3
#
4
# You can extend this idea to save any arbitrary information across telnet
5
# Don Libes -  Oct 17, 1991.
6
 
7
set prompt "(%|#|\\$) $"                ;# default prompt
8
catch {set prompt $env(EXPECT_PROMPT)}
9
 
10
eval spawn telnet $argv
11
interact -o -nobuffer -re $prompt return
12
send "cd [pwd]\r"
13
interact

powered by: WebSVN 2.1.0

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