What is non-standard input/output/error

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











up vote
1
down vote

favorite












I have read books/tutorials which mention standard input/output/error. My understanding is that:




  1. standard input/output/error are concepts of a process (i.e. if someone mentions standard input/output/error, they are actually talking about standard input/output/error of a particular process. It doesn't make sense to talk about standard input/output/error of a file.)

  2. Standard input in Linux for most processes is keyboard and standard output/error is screen.

My question: if there's the standard, what is the non-standard input/output/error of a process in Linux?










share|improve this question



























    up vote
    1
    down vote

    favorite












    I have read books/tutorials which mention standard input/output/error. My understanding is that:




    1. standard input/output/error are concepts of a process (i.e. if someone mentions standard input/output/error, they are actually talking about standard input/output/error of a particular process. It doesn't make sense to talk about standard input/output/error of a file.)

    2. Standard input in Linux for most processes is keyboard and standard output/error is screen.

    My question: if there's the standard, what is the non-standard input/output/error of a process in Linux?










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have read books/tutorials which mention standard input/output/error. My understanding is that:




      1. standard input/output/error are concepts of a process (i.e. if someone mentions standard input/output/error, they are actually talking about standard input/output/error of a particular process. It doesn't make sense to talk about standard input/output/error of a file.)

      2. Standard input in Linux for most processes is keyboard and standard output/error is screen.

      My question: if there's the standard, what is the non-standard input/output/error of a process in Linux?










      share|improve this question















      I have read books/tutorials which mention standard input/output/error. My understanding is that:




      1. standard input/output/error are concepts of a process (i.e. if someone mentions standard input/output/error, they are actually talking about standard input/output/error of a particular process. It doesn't make sense to talk about standard input/output/error of a file.)

      2. Standard input in Linux for most processes is keyboard and standard output/error is screen.

      My question: if there's the standard, what is the non-standard input/output/error of a process in Linux?







      stdout stdin stderr






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 3 hours ago









      RudiC

      1,4769




      1,4769










      asked 5 hours ago









      Tran Triet

      578




      578




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          5
          down vote













          The file descriptors 0, 1, and 2 are provided by default when a process is execed, and associated with stdin, stdout, and stderr. If a process needs additional I/O channels, it opens non-standard file descriptors starting from 3.



          For 1.: Yes



          For 2.: That's true for interactive processes whose I/O is not redirected. Other processes (e.g. cron jobs) can well have different associations.






          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%2f472000%2fwhat-is-non-standard-input-output-error%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













            The file descriptors 0, 1, and 2 are provided by default when a process is execed, and associated with stdin, stdout, and stderr. If a process needs additional I/O channels, it opens non-standard file descriptors starting from 3.



            For 1.: Yes



            For 2.: That's true for interactive processes whose I/O is not redirected. Other processes (e.g. cron jobs) can well have different associations.






            share|improve this answer
























              up vote
              5
              down vote













              The file descriptors 0, 1, and 2 are provided by default when a process is execed, and associated with stdin, stdout, and stderr. If a process needs additional I/O channels, it opens non-standard file descriptors starting from 3.



              For 1.: Yes



              For 2.: That's true for interactive processes whose I/O is not redirected. Other processes (e.g. cron jobs) can well have different associations.






              share|improve this answer






















                up vote
                5
                down vote










                up vote
                5
                down vote









                The file descriptors 0, 1, and 2 are provided by default when a process is execed, and associated with stdin, stdout, and stderr. If a process needs additional I/O channels, it opens non-standard file descriptors starting from 3.



                For 1.: Yes



                For 2.: That's true for interactive processes whose I/O is not redirected. Other processes (e.g. cron jobs) can well have different associations.






                share|improve this answer












                The file descriptors 0, 1, and 2 are provided by default when a process is execed, and associated with stdin, stdout, and stderr. If a process needs additional I/O channels, it opens non-standard file descriptors starting from 3.



                For 1.: Yes



                For 2.: That's true for interactive processes whose I/O is not redirected. Other processes (e.g. cron jobs) can well have different associations.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 4 hours ago









                RudiC

                1,4769




                1,4769



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f472000%2fwhat-is-non-standard-input-output-error%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    List of Gilmore Girls characters

                    What does second last employer means? [closed]

                    One-line joke