Sidehistorik
attachments
Lidt test fra Ubuntu
Ref: http://superuser.com/questions/670866/feeding-contents-of-a-text-file-as-command-to-telnet
...
Kodeblok | ||
---|---|---|
| ||
#!/usr/bin/expect spawn telnet 10.0.0.110 10001 expect "'^]'." send ">>Login 32010<<\r" expect ">>Login Ok<<" send ">>Set 10601 1<<" send ">>Logout\r" exit |
Vedhæftninger |
---|