23,110
社区成员
发帖
与我相关
我的任务
分享
#!/bin/bash
printf "Please enter Key Worlds:\n"
read Key
printf "Please enter your username:\n"
read Username
printf "Please enter your password:\n"
read Password
for id in `mysqladmin -u $Username -p$Password processlist | grep $Key | awk '{print $2}'`
do
mysqladmin -u$Username -p$Password kill ${id}
done
#!/bin/sh
stty -echo
echo -n "Please set your password: "
read p
stty echo
echo -e "\nYour password is: $p"