Log all console output in real time

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











up vote
0
down vote

favorite












I would like to log everything printed to my console in real time. What I mean by this is that I need to be able to view the log file while the logger is running.



To my understanding, script output.txt cannot do this, because I cannot more the file until I exit. So what can I do?










share|improve this question

























    up vote
    0
    down vote

    favorite












    I would like to log everything printed to my console in real time. What I mean by this is that I need to be able to view the log file while the logger is running.



    To my understanding, script output.txt cannot do this, because I cannot more the file until I exit. So what can I do?










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I would like to log everything printed to my console in real time. What I mean by this is that I need to be able to view the log file while the logger is running.



      To my understanding, script output.txt cannot do this, because I cannot more the file until I exit. So what can I do?










      share|improve this question













      I would like to log everything printed to my console in real time. What I mean by this is that I need to be able to view the log file while the logger is running.



      To my understanding, script output.txt cannot do this, because I cannot more the file until I exit. So what can I do?







      scripting logs






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 5 at 16:54









      Daniel Paczuski Bak

      744




      744




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          The script manpage lists this option:




          --flush:
          Flush output after each write. This is nice for
          telecooperation: one person does mkfifo foo; script -f foo,
          and another can supervise real-time what is being done using cat foo.




          It sounds sufficient for what you want to achieve.






          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%2f467079%2flog-all-console-output-in-real-time%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
            1
            down vote













            The script manpage lists this option:




            --flush:
            Flush output after each write. This is nice for
            telecooperation: one person does mkfifo foo; script -f foo,
            and another can supervise real-time what is being done using cat foo.




            It sounds sufficient for what you want to achieve.






            share|improve this answer
























              up vote
              1
              down vote













              The script manpage lists this option:




              --flush:
              Flush output after each write. This is nice for
              telecooperation: one person does mkfifo foo; script -f foo,
              and another can supervise real-time what is being done using cat foo.




              It sounds sufficient for what you want to achieve.






              share|improve this answer






















                up vote
                1
                down vote










                up vote
                1
                down vote









                The script manpage lists this option:




                --flush:
                Flush output after each write. This is nice for
                telecooperation: one person does mkfifo foo; script -f foo,
                and another can supervise real-time what is being done using cat foo.




                It sounds sufficient for what you want to achieve.






                share|improve this answer












                The script manpage lists this option:




                --flush:
                Flush output after each write. This is nice for
                telecooperation: one person does mkfifo foo; script -f foo,
                and another can supervise real-time what is being done using cat foo.




                It sounds sufficient for what you want to achieve.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 5 at 17:09









                Hermann

                553312




                553312



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f467079%2flog-all-console-output-in-real-time%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay