Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash wait for input to continue

read -t 1 -n 1
echo "Press any key to continue"
while [ true ] ; do
read -t 3 -n 1
if [ $? = 0 ] ; then
break ;
else
continue ;
fi
done
Source by linuxhint.com #
 
PREVIOUS NEXT
Tagged: #bash #wait #input #continue
ADD COMMENT
Topic
Name
5+4 =