No log content with tail but when terminating a process I see content with less
Clash 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
linux io-redirection tail nohup
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.
add a comment |Â
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
linux io-redirection tail nohup
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
add a comment |Â
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
linux io-redirection tail nohup
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
linux io-redirection tail nohup
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.
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
add a comment |Â
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
add a comment |Â
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.
this made the trick! THANKS!
– 9uzman7
11 hours ago
add a comment |Â
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.
+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
add a comment |Â
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.
this made the trick! THANKS!
– 9uzman7
11 hours ago
add a comment |Â
up vote
5
down vote
accepted
Run your program as:
nohup stdbuf -oL ./executable &> /tmp/out.log &
stdbuf can change the default buffering.
this made the trick! THANKS!
– 9uzman7
11 hours ago
add a comment |Â
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.
Run your program as:
nohup stdbuf -oL ./executable &> /tmp/out.log &
stdbuf can change the default buffering.
answered 11 hours ago


Ipor Sircer
9,1701920
9,1701920
this made the trick! THANKS!
– 9uzman7
11 hours ago
add a comment |Â
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
add a comment |Â
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.
+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
add a comment |Â
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.
+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
add a comment |Â
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.
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.
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
add a comment |Â
+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
add a comment |Â
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.
9uzman7 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What is the question?
– Peter Mortensen
39 mins ago