echo $$ >> /tmp/wait.pls
echo Process started
sleep 3
echo Process stopped
rm /temp/wait.plspassword=`zenity --password`
echo ${password} | sudo -S gnome-terminal -e "./shell1.sh"
while true
do
if [ ! -f /tmp/wait.pls ] ; then
echo "Done"
exit 0
fi
done $ command
press "yes" to continue
(вводим yes)
completed
$command <<<"yes"command <<EOF
yes
EOFecho yes > answers.txt
command <answers.txt