6 Replies Latest reply on Nov 1, 2019 8:53 AM by Bill Robinson

    How execute to script with no mode TTY?

    Natali Nogueira
      Share This:

      Hi,

       

      We would like to know how to execute a script tty with no interaction on Bladelogic?

      Script is stopping at script question.

       

       

             #this block checks to see if we are an interactive invocation or the -f switch was used.

              if  ! [[ "$force" == "true" ]] &&  tty -s; then

                  echo ${PIDLST}

                      echo  -n "

                              Do you want to kill the processes listed?

                              (y/n): "

                      read answer

                      [[ $answer != y* ]] && echo "

                                              OK, no killing then.

                                              " && exit 0;

       

      fi

       

       

       

      Thank you.