Hmm, not quite, the command "being returned" is simply the "echo" of the command coming back, this happens immediatly after you send it, it's like when you type in a telnet window, for every keystroke you send it sends one back to display in your console. This does NOT mean the command is finished, the command could very well be hanging. How long does the command take to run in a regular telnet window? The fact that the dump log ends there means that nothing is coming back through the telnet connection, not even a prompt, which tells me the command (for whatever reason) is not finished.
Example: I sent a sleep command to one of my machines this was the output of it and the chain of events:
#Command I sent
my @lines = $th->cmd("sleep 10");
#dump_log output
#Matched a prompt
< 0x00000: 72 65 78 40 44 72 69 7a 7a 74 3e 20 rex@Dri
+zzt>
#command is sent
> 0x00000: 73 6c 65 65 70 20 31 30 0d 0a sleep 1
+0..
#command is immediatly echoed back
< 0x00000: 73 6c 65 65 70 20 31 30 0d 0a sleep 1
+0..
#10 second wait here and then prompt returns
< 0x00000: 72 65 78 40 44 72 69 7a 7a 74 3e 20 rex@Dri
+zzt>
Remember that dump_log is both input
and output logs!
"Nothing is sure but death and taxes" I say combine the two and its death to all taxes!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.