in reply to Telnet extract output
Try modifying your commands to things like $code->cmd('cd /log'); and see if your problems go away. If they don't then I highly recommend trying to echo the results of the telnet session to screen while you're trying to debug it.
I would also suggest that you try to add in some error handling logic if you're getting responses other than what you're expecting. Be warned that error handling logic is notoriously hard to add when manipulating programs remotely like this, and that is likely to be a source of future problems. But at least by trying to add some checks now you can ease many of your future headaches.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Telnet extract output
by ScOut3R (Sexton) on Aug 01, 2008 at 06:17 UTC | |
by tilly (Archbishop) on Aug 01, 2008 at 14:56 UTC | |
by ScOut3R (Sexton) on Aug 01, 2008 at 19:35 UTC | |
by tilly (Archbishop) on Aug 01, 2008 at 20:50 UTC | |
by ScOut3R (Sexton) on Aug 02, 2008 at 14:00 UTC |