Solved

Active Perl on Windows XP error message stty??

Posted on 2004-04-02
2
354 Views
Last Modified: 2010-05-18
G'day peoples

I'm new to Perl and i have just set up Active Perl on Windows Xp
I have written a basic program that works on the unix box but when i try to run it on Windows Xp

I get the error message "" stty is not a recognised as an internal or external command, operable program or batch file""

I was wondering if i need to Install a module and if so which one and How??

this was my program Very basic but i just want it to run so i can continue learning..

//PROGRAM

#!/usr/bin/perl             
use Getopt::Std;             
      
                        
getopts('a:h');             

if($opt_a) { print "Adding user $opt_a:$!\n";
           print "Enter password: ";
      system ("stty -echo");
      $input=<STDIN>;      
      chomp $input;
      system ("stty echo");
      print ($input,"\n");
         }
                        
if($opt_h) { print "Hello World\n";}

exit;

Thanks MAte for your time..
Chad
0
Comment
Question by:Chad_MacArthur
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 20 total points
ID: 10745987
use Term::ReadPassword;
0
 
LVL 8

Expert Comment

by:davorg
ID: 10746770
stty is a Unix command. It doesn't exist on Windows. You'll need to find an alternative way of turning off the echoing of text. ozo's suggestion looks like a good one.

Dave...
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question