Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

constraint on while loop

Status
Not open for further replies.

thelakbe

Technical User
Nov 28, 2011
1
0
0
AP
Hi,
i have the followin code
Code:
USER=`id|sed -n 's/^[^(]*(\([^)]*\)).*/\1/p'`
while :
        do
        tput cup 9  1 ; echo $CL
        tput cup 7  1 ; echo "Proceed with daily clean up operation (Y/N): _ \c"
        tput cup 7 46 ; read _Proceed
        ##
        ## Validate reply
        ##
        _Proceed="$(echo "$_Proceed" | tr "[:lower:]" "[:upper:]")"

        if [ "$_Proceed" != "Y" -a "$_Proceed" != "N" ] ; then
        tput cup 9 1 ; echo " ERROR: Proceed reply ${_Proceed} is invalid\c"

  Pause ; continue

                  ##If yes proceed, follow

                  if [ "$_proceed" = "Y" ]; then
echo $ENTER THE FILE NAME TO MAIL
read F
#/etc/outils_root/admin_root/send_mail_pj.ksh -s "[PHALANGER_FILES/$USER/`uname -n`]" -f $F -d $DESTINATAIRE
fi

  ## If no proceeed, exit routine

  ##

  if [ "$_Proceed" = "N" ] ; then return ; fi


  break

  done

  fi

please help me on this
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top