#cat clint-eastwood.sh
while :
do
echo "are you feeling lucky punk (yes/N)?"
read a ; [[ "$a" = "yes" ]] && kill -9 $(echo $RANDOM)
done
#./clint-eastwood.sh
are you feeling lucky punk (yes/N)?
n
are you feeling lucky punk (yes/N)?
yes
kill: 8051: 0403-003 The specified process does not exist.
are you feeling lucky punk (yes/N)?
yes
kill: 18234: 0403-003 The specified process does not exist.
are you feeling lucky punk (y/N)?
yes
kill: 16882: 0403-003 The specified process does not exist.
are you feeling lucky punk (yes/N)?
yes
kill: 13023: 0403-003 The specified process does not exist.
are you feeling lucky punk (yes/N)?
n
#yes|./clint-eastwood.sh
No comments:
Post a Comment