Cannot see log content with tail but when terminating process i can see content with less

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











up vote
1
down vote

favorite












Im basically running:



nohup ./executable &> /tmp/out.log &


and to make sure the process is running i want to do



tail -f /tmp/out.log


but the only thing i get from tail is "nohup: ignoring input" and once killing the process previously started i can see the contents of out.log










share|improve this question









New contributor




9uzman7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    1
    down vote

    favorite












    Im basically running:



    nohup ./executable &> /tmp/out.log &


    and to make sure the process is running i want to do



    tail -f /tmp/out.log


    but the only thing i get from tail is "nohup: ignoring input" and once killing the process previously started i can see the contents of out.log










    share|improve this question









    New contributor




    9uzman7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Im basically running:



      nohup ./executable &> /tmp/out.log &


      and to make sure the process is running i want to do



      tail -f /tmp/out.log


      but the only thing i get from tail is "nohup: ignoring input" and once killing the process previously started i can see the contents of out.log










      share|improve this question









      New contributor




      9uzman7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      Im basically running:



      nohup ./executable &> /tmp/out.log &


      and to make sure the process is running i want to do



      tail -f /tmp/out.log


      but the only thing i get from tail is "nohup: ignoring input" and once killing the process previously started i can see the contents of out.log







      linux io-redirection tail nohup






      share|improve this question









      New contributor




      9uzman7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      9uzman7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 49 mins ago









      Rui F Ribeiro

      36.5k1271116




      36.5k1271116






      New contributor




      9uzman7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 53 mins ago









      9uzman7

      83




      83




      New contributor




      9uzman7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      9uzman7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      9uzman7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          Run your program as:



          nohup stdbuf -oL ./executable &> /tmp/out.log &


          stdbuf can change the default buffering.






          share|improve this answer




















          • this made the trick! THANKS!
            – 9uzman7
            25 mins ago

















          up vote
          1
          down vote













          Your executable is using buffered output, so you will only see something with tail if more than one block of output is produced. The size of such a block will be 4k or more.



          If you wrote the executable yourself, change the output to line buffered or to not buffered.






          share|improve this answer




















          • +1 Or add an instruction to flush stdout ; nonetheless we cannot give a better answer to such a vague question.
            – Rui F Ribeiro
            40 mins ago











          • makes sense, the executable is from the LoRa device provider. Is there an easy workaround? thanks for the response!
            – 9uzman7
            38 mins ago










          • You can allocate a pty and give that to the executable. Most programs use line buffered for a tty. Your program also does if you see immediate output if you run it directly from the shell.
            – RalfFriedl
            34 mins ago










          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
          );



          );






          9uzman7 is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f469299%2fcannot-see-log-content-with-tail-but-when-terminating-process-i-can-see-content%23new-answer', 'question_page');

          );

          Post as a guest






























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote



          accepted










          Run your program as:



          nohup stdbuf -oL ./executable &> /tmp/out.log &


          stdbuf can change the default buffering.






          share|improve this answer




















          • this made the trick! THANKS!
            – 9uzman7
            25 mins ago














          up vote
          3
          down vote



          accepted










          Run your program as:



          nohup stdbuf -oL ./executable &> /tmp/out.log &


          stdbuf can change the default buffering.






          share|improve this answer




















          • this made the trick! THANKS!
            – 9uzman7
            25 mins ago












          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          Run your program as:



          nohup stdbuf -oL ./executable &> /tmp/out.log &


          stdbuf can change the default buffering.






          share|improve this answer












          Run your program as:



          nohup stdbuf -oL ./executable &> /tmp/out.log &


          stdbuf can change the default buffering.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 28 mins ago









          Ipor Sircer

          9,1501920




          9,1501920











          • this made the trick! THANKS!
            – 9uzman7
            25 mins ago
















          • this made the trick! THANKS!
            – 9uzman7
            25 mins ago















          this made the trick! THANKS!
          – 9uzman7
          25 mins ago




          this made the trick! THANKS!
          – 9uzman7
          25 mins ago












          up vote
          1
          down vote













          Your executable is using buffered output, so you will only see something with tail if more than one block of output is produced. The size of such a block will be 4k or more.



          If you wrote the executable yourself, change the output to line buffered or to not buffered.






          share|improve this answer




















          • +1 Or add an instruction to flush stdout ; nonetheless we cannot give a better answer to such a vague question.
            – Rui F Ribeiro
            40 mins ago











          • makes sense, the executable is from the LoRa device provider. Is there an easy workaround? thanks for the response!
            – 9uzman7
            38 mins ago










          • You can allocate a pty and give that to the executable. Most programs use line buffered for a tty. Your program also does if you see immediate output if you run it directly from the shell.
            – RalfFriedl
            34 mins ago














          up vote
          1
          down vote













          Your executable is using buffered output, so you will only see something with tail if more than one block of output is produced. The size of such a block will be 4k or more.



          If you wrote the executable yourself, change the output to line buffered or to not buffered.






          share|improve this answer




















          • +1 Or add an instruction to flush stdout ; nonetheless we cannot give a better answer to such a vague question.
            – Rui F Ribeiro
            40 mins ago











          • makes sense, the executable is from the LoRa device provider. Is there an easy workaround? thanks for the response!
            – 9uzman7
            38 mins ago










          • You can allocate a pty and give that to the executable. Most programs use line buffered for a tty. Your program also does if you see immediate output if you run it directly from the shell.
            – RalfFriedl
            34 mins ago












          up vote
          1
          down vote










          up vote
          1
          down vote









          Your executable is using buffered output, so you will only see something with tail if more than one block of output is produced. The size of such a block will be 4k or more.



          If you wrote the executable yourself, change the output to line buffered or to not buffered.






          share|improve this answer












          Your executable is using buffered output, so you will only see something with tail if more than one block of output is produced. The size of such a block will be 4k or more.



          If you wrote the executable yourself, change the output to line buffered or to not buffered.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 42 mins ago









          RalfFriedl

          3,5201522




          3,5201522











          • +1 Or add an instruction to flush stdout ; nonetheless we cannot give a better answer to such a vague question.
            – Rui F Ribeiro
            40 mins ago











          • makes sense, the executable is from the LoRa device provider. Is there an easy workaround? thanks for the response!
            – 9uzman7
            38 mins ago










          • You can allocate a pty and give that to the executable. Most programs use line buffered for a tty. Your program also does if you see immediate output if you run it directly from the shell.
            – RalfFriedl
            34 mins ago
















          • +1 Or add an instruction to flush stdout ; nonetheless we cannot give a better answer to such a vague question.
            – Rui F Ribeiro
            40 mins ago











          • makes sense, the executable is from the LoRa device provider. Is there an easy workaround? thanks for the response!
            – 9uzman7
            38 mins ago










          • You can allocate a pty and give that to the executable. Most programs use line buffered for a tty. Your program also does if you see immediate output if you run it directly from the shell.
            – RalfFriedl
            34 mins ago















          +1 Or add an instruction to flush stdout ; nonetheless we cannot give a better answer to such a vague question.
          – Rui F Ribeiro
          40 mins ago





          +1 Or add an instruction to flush stdout ; nonetheless we cannot give a better answer to such a vague question.
          – Rui F Ribeiro
          40 mins ago













          makes sense, the executable is from the LoRa device provider. Is there an easy workaround? thanks for the response!
          – 9uzman7
          38 mins ago




          makes sense, the executable is from the LoRa device provider. Is there an easy workaround? thanks for the response!
          – 9uzman7
          38 mins ago












          You can allocate a pty and give that to the executable. Most programs use line buffered for a tty. Your program also does if you see immediate output if you run it directly from the shell.
          – RalfFriedl
          34 mins ago




          You can allocate a pty and give that to the executable. Most programs use line buffered for a tty. Your program also does if you see immediate output if you run it directly from the shell.
          – RalfFriedl
          34 mins ago










          9uzman7 is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          9uzman7 is a new contributor. Be nice, and check out our Code of Conduct.












          9uzman7 is a new contributor. Be nice, and check out our Code of Conduct.











          9uzman7 is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f469299%2fcannot-see-log-content-with-tail-but-when-terminating-process-i-can-see-content%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