Out of curiosity, what are you using as the telnet host on your Windows system?
My guess is along the lines of what someone else suggested: the environment that you are connecting to via telnet probably doesn't have something setup correctly.
Since you have a script that is working locally, you can probably use something like psexec to remotely run your script remotely from another Windows system.
If you are wanting a more Perl type solution and/or the ability to execute your script remotely from other platforms, you could use a Perl module to create your own Telnet server that can accept remote connections and commands. As long as the Telnet server script is started with the correct credentials and environment, you should be good to go. At work, I setup a simple little "Telnet server" using IO::Socket::INET::Daemon that allowed me to remotely connect to a Windows system and get information from a USB connected device to that system. The concepts of what I did there should work in your situation too.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
Outside of code tags, you may need to use entities for some characters:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||