From 32b1eb211157802ca80e36c2a6ccd0f9176616d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 2 Apr 2011 14:56:42 +0300 Subject: [PATCH] Ignore output from stty for portability (e.g. Windows). --- mysqltuner.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index 9ce3efa8e..4d3a3dba5 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -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";