Solved

Active Perl on Windows XP error message stty??

Posted on 2004-04-02
2
348 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
2 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 20 total points
Comment Utility
use Term::ReadPassword;
0
 
LVL 8

Expert Comment

by:davorg
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now