in reply to phantom log from hell?

Seems to me that the log you're receiving at the top of your desired output come from the STDERR. Try something like open STDERR, '/dev/null'; in your code. This should stop the "Phantom Log From Hell"tm.

Alternativelly, you could consider redirecting (by other means)the telnet standard error to /dev/null.

I think you should try to use the Net::Telnet module instead of the Expect module.

Hope that helps.


updated:The STDERR is used as the default way to tell things that aren't the expected output of a program. I tought that telnet or expect could be using the STDERR to output unexpected information about the operation status. Sorry if this does not work.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Just Another Perl Monk

Replies are listed 'Best First'.
Re: Re: phantom log from hell?
by jcpunk (Friar) on Jun 16, 2003 at 15:46 UTC
    i will look into Net::Telnet, but as for the STDERR i do not think that is correct, i will test it out, but shouldnt stderr have some sort of failure messages in it and not output that i asked for (admitedly sent to /dev/null) as removing the log_file("/dev/null"); line does not change my output at all. but i apprecate your assistance.

    updated:implemented the stderr part, no dice sorry same problems. output stays untill i comment out the print statement