1

BASH - read does not wait for user input in some circumstances

view story
linux-howto

http://www.unix.com – Hello. I am running 2 scripts : script_1 and script_2 These scripts are run as root Script 2 contains : Code: #!/bin/bash # # ~/bin/script_2 # E_BAD_PARAM=115 # date2stamp () {     date --date "$1" +%Y-%m-%d___%H:%M:%S } # USER_NAME=$1 NB_PARAM=$# PARAM0=$0 if [ $NB_PARAM -ne 1 ] ; then     echo "Usage : ~/bin/script_2  user_name"     exit $E_BAD_PARAM fi # echo "We are in script  2" # TIMESTAMP=$(date2stamp  now) # if [ -f /home/$USER_NAME/.ssh/id_rsa -a -f /home/$USER_NAME/.ssh/id_rsa.pub  ] ; then   (HowTos)