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.
In reply to Re: Telnet extract output
by tilly
in thread Telnet extract output
by ScOut3R
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |