Re: Net::Telnet and SMTP



crr wrote:

Mike wrote:

Yeah .. you will see input in the input log.. any returned messages will
be in output log... use it and see.


I've tried both input_log and output_log, but still get bubkiss.  I
also don't even see the responses with dump_log.  Also, it seems like
it's reversed from what I would consider logical.  Which is to say, the
input_log shows what's returned and the output_log shows the commands
I'm sending.

I just double checked it, and it does work reverse of what I would
expect.  So if I do output_log instead of input_log, I get the commands
I'm sending, and if I do input_log instead of output_log I get (some)
of the responses to the commands I send, but only if I do a get() or
getline() after the command.

Any thoughts on why that is?

Thanks,

crr

Ahhhh so its not being flushed...

Sometimes when dealing with routers and other devices i have to send a carriage return after a command in order to get the result of the previous command. I believe there is a way to change this behavior.. but i have been content with just sending carriage returns..

$connection->print("");

Mike


.



Relevant Pages