I am trying to put answer bin in script
after line
${PRINTF_CMD} "Enter an administrative group ( ${GROUP} ): "
When running a complete script in terminal, it shows
"Enter an administrative group ( bin ): "
and prompts for user input.
I want to automate this script by putting my fixed answers in this script.
I have tried with below
after line of ${PRINTF_CMD} "Enter an administrative group ( ${GROUP} ): "Code:command << EOF bin EOF
but it doesnt work.
Please help!
PS. Complete part of script is (down):
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------Code:set_group() { DEF_GROUP="`list_default_group`" if [ -z "${1}" ];then ${ECHO_CMD} ${ECHO_CMD} "This application is a suid root program, which allows the" ${ECHO_CMD} "root user or members of the administrative group to have" ${ECHO_CMD} "administrative privileges. These privileges include adding," ${ECHO_CMD} "removing, and modifying printer queues." ${ECHO_CMD} ${ECHO_CMD} "To set the administrative group, select any valid group." ${ECHO_CMD} "The default is ( ${DEF_GROUP} )." ${ECHO_CMD} continue=yes app_group="`get_value app.group`" if [ "${?}" = "0" ];then GROUP="${app_group}" else GROUP="${DEF_GROUP}" fi while [ "${continue}" = "yes" ] do ${PRINTF_CMD} "Enter an administrative group ( ${GROUP} ): " read mvgroup if [ -z "${mvgroup}" ]; then mvgroup="${GROUP}" fi check_group ${mvgroup} if [ "${?}" = "0" ];then continue=no fi done else mvgroup=${1} check_group ${mvgroup} if [ "${?}" != "0" ];then setup_incomplete exit 1 fi fi

Reply With Quote
