Dukelow, Don wrote:
> I've playing with Net::Telnet for a while now. Can anyone tell me
> why when I telnet into another UNIX server and then sudo to root, I
> can't
> capture the "cmd" output. If I execute a command as a user "my
> @RETURNED = $TELNET->cmd('uname -a');" the @RETURNED can be printed.
> But after I sudo to root the log files show that uname -a is excited but
> the @RETURNED array doesn't have anything in it to print.
> Can anyone tell me how to get around this?
> 
> -----
> Don Dukelow
>

Sounds like the connection is actually timing out, possibly by the
change in the prompt.

You might try turning on debug and opening an Input_log.

Wireshark sometimes works well to capture the packets and reassemble the
conversation illustrating where the problem is occuring.


JOhn

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to