in reply to How can I send Ctrl-D over Telnet session
So just put a "\x4" in your string where you want the ctrl-D, or even better:
# also declare other ctrl chars you need... my $ctrlD = "\x4"; my $escape = "\x1b"; #... more code here... cmd("Send all the\ncommands you need\nincluding a ${ctrlD}");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I send Ctrl-D over Telnet session
by tye (Sage) on Sep 10, 2008 at 14:19 UTC | |
by RMGir (Prior) on Sep 10, 2008 at 15:39 UTC | |
|
Re^2: How can I send Ctrl-D over Telnet session
by Anonymous Monk on Sep 10, 2008 at 09:53 UTC |