Re: Net::Telnet and SMTP
- From: Mike <Mike.Ferrari@xxxxxxxxxxxx>
- Date: Tue, 21 Jun 2005 09:09:08 -0500
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
.
- Follow-Ups:
- Re: Net::Telnet and SMTP
- From: crr
- Re: Net::Telnet and SMTP
- References:
- Net::Telnet and SMTP
- From: crr
- Re: Net::Telnet and SMTP
- From: Mark Clements
- Re: Net::Telnet and SMTP
- From: Mike
- Re: Net::Telnet and SMTP
- From: crr
- Re: Net::Telnet and SMTP
- From: Mike
- Re: Net::Telnet and SMTP
- From: crr
- Net::Telnet and SMTP
- Prev by Date: Re: to uppercase one liner help
- Next by Date: Re: to uppercase one liner help
- Previous by thread: Re: Net::Telnet and SMTP
- Next by thread: Re: Net::Telnet and SMTP
- Index(es):
Relevant Pages
|