How to suppress a message from a program while installing it to use in a bash program?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












PROBLEM:



I have a program written in bash that does a lot of stuff like install new software on the system.



One of the programs it installs has an extravagant message appear where you get some info about usage and the configuration file and what it does if you don't edit the config file.



And then waits for user input.



This message is a dialog kind of message in a gui:



enter image description here



The program that display's this message is portsentry and the system is Debian Stretch.



QUESTION:




How can I suppress this message so there is no communication between my program and the user?











share|improve this question



























    up vote
    2
    down vote

    favorite












    PROBLEM:



    I have a program written in bash that does a lot of stuff like install new software on the system.



    One of the programs it installs has an extravagant message appear where you get some info about usage and the configuration file and what it does if you don't edit the config file.



    And then waits for user input.



    This message is a dialog kind of message in a gui:



    enter image description here



    The program that display's this message is portsentry and the system is Debian Stretch.



    QUESTION:




    How can I suppress this message so there is no communication between my program and the user?











    share|improve this question

























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      PROBLEM:



      I have a program written in bash that does a lot of stuff like install new software on the system.



      One of the programs it installs has an extravagant message appear where you get some info about usage and the configuration file and what it does if you don't edit the config file.



      And then waits for user input.



      This message is a dialog kind of message in a gui:



      enter image description here



      The program that display's this message is portsentry and the system is Debian Stretch.



      QUESTION:




      How can I suppress this message so there is no communication between my program and the user?











      share|improve this question















      PROBLEM:



      I have a program written in bash that does a lot of stuff like install new software on the system.



      One of the programs it installs has an extravagant message appear where you get some info about usage and the configuration file and what it does if you don't edit the config file.



      And then waits for user input.



      This message is a dialog kind of message in a gui:



      enter image description here



      The program that display's this message is portsentry and the system is Debian Stretch.



      QUESTION:




      How can I suppress this message so there is no communication between my program and the user?








      shell-script debian scripting software-installation messaging






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 hours ago









      Jeff Schaller

      34.2k851113




      34.2k851113










      asked 2 hours ago









      somethingSomething

      1,66093055




      1,66093055




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          To avoid questions, instruct debconf to run non-interactively:



          export DEBIAN_FRONTEND=noninteractive





          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476312%2fhow-to-suppress-a-message-from-a-program-while-installing-it-to-use-in-a-bash-pr%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            5
            down vote



            accepted










            To avoid questions, instruct debconf to run non-interactively:



            export DEBIAN_FRONTEND=noninteractive





            share|improve this answer
























              up vote
              5
              down vote



              accepted










              To avoid questions, instruct debconf to run non-interactively:



              export DEBIAN_FRONTEND=noninteractive





              share|improve this answer






















                up vote
                5
                down vote



                accepted







                up vote
                5
                down vote



                accepted






                To avoid questions, instruct debconf to run non-interactively:



                export DEBIAN_FRONTEND=noninteractive





                share|improve this answer












                To avoid questions, instruct debconf to run non-interactively:



                export DEBIAN_FRONTEND=noninteractive






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 1 hour ago









                Stephen Kitt

                151k23336404




                151k23336404



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476312%2fhow-to-suppress-a-message-from-a-program-while-installing-it-to-use-in-a-bash-pr%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    Long meetings (6-7 hours a day): Being “babysat” by supervisor

                    Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                    Confectionery