No log content with tail but when terminating a process I see content with less

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











up vote
4
down vote

favorite












Basically, I am running:



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


In order to make sure the process is running I ran the command:



tail -f /tmp/out.log


But the only thing I can get from tail is "nohup: ignoring input", and once killing the process that 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.



















  • What is the question?
    – Peter Mortensen
    39 mins ago














up vote
4
down vote

favorite












Basically, I am running:



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


In order to make sure the process is running I ran the command:



tail -f /tmp/out.log


But the only thing I can get from tail is "nohup: ignoring input", and once killing the process that 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.



















  • What is the question?
    – Peter Mortensen
    39 mins ago












up vote
4
down vote

favorite









up vote
4
down vote

favorite











Basically, I am running:



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


In order to make sure the process is running I ran the command:



tail -f /tmp/out.log


But the only thing I can get from tail is "nohup: ignoring input", and once killing the process that 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.











Basically, I am running:



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


In order to make sure the process is running I ran the command:



tail -f /tmp/out.log


But the only thing I can get from tail is "nohup: ignoring input", and once killing the process that 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 18 mins ago









Goro

2,19641848




2,19641848






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 11 hours ago









9uzman7

233




233




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.











  • What is the question?
    – Peter Mortensen
    39 mins ago
















  • What is the question?
    – Peter Mortensen
    39 mins ago















What is the question?
– Peter Mortensen
39 mins ago




What is the question?
– Peter Mortensen
39 mins ago










2 Answers
2






active

oldest

votes

















up vote
5
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
    11 hours ago

















up vote
4
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
    11 hours ago











  • makes sense, the executable is from the LoRa device provider. Is there an easy workaround? thanks for the response!
    – 9uzman7
    11 hours 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
    11 hours 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%2fno-log-content-with-tail-but-when-terminating-a-process-i-see-content-with-less%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
5
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
    11 hours ago














up vote
5
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
    11 hours ago












up vote
5
down vote



accepted







up vote
5
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 11 hours ago









Ipor Sircer

9,1701920




9,1701920











  • this made the trick! THANKS!
    – 9uzman7
    11 hours ago
















  • this made the trick! THANKS!
    – 9uzman7
    11 hours ago















this made the trick! THANKS!
– 9uzman7
11 hours ago




this made the trick! THANKS!
– 9uzman7
11 hours ago












up vote
4
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
    11 hours ago











  • makes sense, the executable is from the LoRa device provider. Is there an easy workaround? thanks for the response!
    – 9uzman7
    11 hours 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
    11 hours ago














up vote
4
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
    11 hours ago











  • makes sense, the executable is from the LoRa device provider. Is there an easy workaround? thanks for the response!
    – 9uzman7
    11 hours 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
    11 hours ago












up vote
4
down vote










up vote
4
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 11 hours ago









RalfFriedl

3,5601522




3,5601522











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











  • makes sense, the executable is from the LoRa device provider. Is there an easy workaround? thanks for the response!
    – 9uzman7
    11 hours 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
    11 hours ago
















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











  • makes sense, the executable is from the LoRa device provider. Is there an easy workaround? thanks for the response!
    – 9uzman7
    11 hours 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
    11 hours ago















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





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













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




makes sense, the executable is from the LoRa device provider. Is there an easy workaround? thanks for the response!
– 9uzman7
11 hours 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
11 hours 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
11 hours 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%2fno-log-content-with-tail-but-when-terminating-a-process-i-see-content-with-less%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