@frozenwithjoy, thanks for the reply. To answer your questions:
print "$command\n";
$exp->send("$command\n");
makes any difference either to the STDOUT or logfile output. It still gives:
(1) (2) Here is the second command error (3) Error on command #3 (4) commit This is the last command Committing data (5) (6) exit Exiting program...
That is, if you ran the server script and entered stuff, you'd get:
(1) This is the first line I typed. Now I'm hitting <ENTER> (2) I'm typing more stuff. (3) exit Exiting program...
In reply to Re^2: How can I show all input and output with Expect.pm
by GeorgeAdams
in thread How can I show all input and output with Expect.pm
by GeorgeAdams
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |