How to avoid the error stty: 'standard input': inappropriate ioctl for device? The 2019 Stack...

How does ice melt when immersed in water

How is simplicity better than precision and clarity in prose?

Did God make two great lights or did He make the great light two?

system() function string length limit

Was credit for the black hole image misattributed?

University's motivation for having tenure-track positions

Didn't get enough time to take a Coding Test - what to do now?

Derivation tree not rendering

Change bounding box of math glyphs in LuaTeX

Why can't devices on different VLANs, but on the same subnet, communicate?

Arduino Pro Micro - switch off LEDs

Finding the path in a graph from A to B then back to A with a minimum of shared edges

Are my PIs rude or am I just being too sensitive?

I could not break this equation. Please help me

Can smartphones with the same camera sensor have different image quality?

Can withdrawing asylum be illegal?

Did the new image of black hole confirm the general theory of relativity?

Windows 10: How to Lock (not sleep) laptop on lid close?

Is above average number of years spent on PhD considered a red flag in future academia or industry positions?

How are presidential pardons supposed to be used?

Is every episode of "Where are my Pants?" identical?

Segmentation fault output is suppressed when piping stdin into a function. Why?

How to stretch delimiters to envolve matrices inside of a kbordermatrix?

What's the point in a preamp?



How to avoid the error stty: 'standard input': inappropriate ioctl for device?



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Couldn't create error file for command: no such file or directoryHow can I fix a problem with standard error screwing up the output of watch?PHP crazy behavior on mountHow can I avoid the “grep: Argument list too long” error?How to pipe arguments into stdin?Run command for every line of a file in bash, passing lines as standard inputstty: standard input: Invalid argument error when scping filesSeparating terminal stdin and stdoutParsing the result of a command in a Linux bash scriptScript selection of options inside running program





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I want to pass two inputs (passwords) to the command grub2-setpassword.



echo -e "linuxpasswordnlinuxpassword" | grub2-setpassword


However, I'm getting this error on CentOS 7:



stty: 'standard input': inappropriate ioctl for device


How to avoid this error?










share|improve this question














bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    1















    I want to pass two inputs (passwords) to the command grub2-setpassword.



    echo -e "linuxpasswordnlinuxpassword" | grub2-setpassword


    However, I'm getting this error on CentOS 7:



    stty: 'standard input': inappropriate ioctl for device


    How to avoid this error?










    share|improve this question














    bumped to the homepage by Community yesterday


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      I want to pass two inputs (passwords) to the command grub2-setpassword.



      echo -e "linuxpasswordnlinuxpassword" | grub2-setpassword


      However, I'm getting this error on CentOS 7:



      stty: 'standard input': inappropriate ioctl for device


      How to avoid this error?










      share|improve this question














      I want to pass two inputs (passwords) to the command grub2-setpassword.



      echo -e "linuxpasswordnlinuxpassword" | grub2-setpassword


      However, I'm getting this error on CentOS 7:



      stty: 'standard input': inappropriate ioctl for device


      How to avoid this error?







      bash






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 26 '16 at 13:49









      GreenTeaTechGreenTeaTech

      8115




      8115





      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          You are trying to go against the nature of grub's password tool, so you have to jump through hoops to get there : drive the terminal directly via expect or perl or python (etc.) or find a new tool.



          Scriptable grub2-mkpasswd my passwd on github may help.






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1160325%2fhow-to-avoid-the-error-stty-standard-input-inappropriate-ioctl-for-device%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You are trying to go against the nature of grub's password tool, so you have to jump through hoops to get there : drive the terminal directly via expect or perl or python (etc.) or find a new tool.



            Scriptable grub2-mkpasswd my passwd on github may help.






            share|improve this answer




























              0














              You are trying to go against the nature of grub's password tool, so you have to jump through hoops to get there : drive the terminal directly via expect or perl or python (etc.) or find a new tool.



              Scriptable grub2-mkpasswd my passwd on github may help.






              share|improve this answer


























                0












                0








                0







                You are trying to go against the nature of grub's password tool, so you have to jump through hoops to get there : drive the terminal directly via expect or perl or python (etc.) or find a new tool.



                Scriptable grub2-mkpasswd my passwd on github may help.






                share|improve this answer













                You are trying to go against the nature of grub's password tool, so you have to jump through hoops to get there : drive the terminal directly via expect or perl or python (etc.) or find a new tool.



                Scriptable grub2-mkpasswd my passwd on github may help.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 28 '16 at 4:43









                AlwaysLearningAlwaysLearning

                1,079712




                1,079712






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1160325%2fhow-to-avoid-the-error-stty-standard-input-inappropriate-ioctl-for-device%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

                    Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

                    Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...