Solved

Active Perl on Windows XP error message stty??

Posted on 2004-04-02
2
355 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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

615 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