Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ignore output from stty for portability (e.g. Windows).

  • Loading branch information...
commit 32b1eb211157802ca80e36c2a6ccd0f9176616d1 1 parent 46bdd40
Ville Skyttä scop authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mysqltuner.pl
4 mysqltuner.pl
View
@@ -308,9 +308,9 @@ sub mysql_setup {
print STDERR "Please enter your MySQL administrative login: ";
my $name = <>;
print STDERR "Please enter your MySQL administrative password: ";
- system("stty -echo");
+ system("stty -echo >/dev/null 2>&1");
my $password = <>;
- system("stty echo");
+ system("stty echo >/dev/null 2>&1");
chomp($password);
chomp($name);
$mysqllogin = "-u $name";
Please sign in to comment.
Something went wrong with that request. Please try again.