Sorry guys. I was sidetrack by other issues and didn't have a chance to follow up. Here's more details of the problem:- i) The script runs fine on my laptop. It allows me to list all instances of a praticular application program running on the system. User can then select a particular process to kill or restart. These are done using basically by calling the system command such as "ps -W", "kill -f pid". ii) When I run the script on a remote machine inside a DOS shell through remote desktop session, I can only issue the 'list' command to list all the instances of a particular application program. The script will then freeze refusing any input from keyboard. I repeat this doesn't happen if I run the script on a local machine. I wonder if this problem is related to the use of remote desktop. I would appreciate if someone who has experience running perl script over a remote desktop experience to shed some light on how a text mode interactive script should read the keyboard input. I suspect simply <STDIN> is not working over a remote desktop session.

In reply to Re: Perl script freeze in RDS by Anonymous Monk
in thread Perl script freeze in RDS by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.