The standard output stream (stdout) is the stream where a program writes its output data.
Questions tagged [stdout]
4740 questions
2
votes
1 answer
Python subprocess & stdout - program deadlocks
I have a simulation program which is piloted though stdin and provides output to stdout
Doing a C++/Qt program for running it in a QProcess works well.
Doing a Python program for running it under linux works well, using:
p =…

galinette
- 8,896
- 2
- 36
- 87
2
votes
1 answer
Syntax of redirection the stderr and stdout to dev/null
I want to redirect the stderr and stdout to dev/null.
Which ist the correct way to redirect and is there difference betweent these options?
I have seen in internet two syntax:
command &>/dev/null (without space)
command &> /dev/null (with…

Memo Can
- 61
- 1
- 4
2
votes
0 answers
Tomcat has stopped generating stdout logs
We have tomcat server in our production environment. Suddenly tomcat has stopped generating stdout logs.
Last generated log by tomcat is one month ago and the size of stdout log file
is 5006 KB.
What is the reason behind there is no stdout log…

Pawan Patil
- 1,067
- 5
- 20
- 46
2
votes
1 answer
Replacing `close` with `open` `/dev/null`?
We have such Perl code:
if (fork==0) {
# in child process close STDOUT и STDERR, for the parent process didn't wait a response from the child and finished quickly
close(STDOUT);
if (!defined fileno(CGI::Carp::SAVEERR)) {close(STDERR)} # TODO…

porton
- 5,214
- 11
- 47
- 95
2
votes
1 answer
Node Child Process Spawn: Stdout returning an Undefined Value
Dealing with what should be a simple problem, but I've been stuck on it for awhile. Might have to do with string encodings, or pipes, or something else entirely - not sure.
Here's some code that shows the problem - it's a child spawn calling a…

Ryan Spicer
- 501
- 3
- 18
2
votes
1 answer
Python subprocess output blocking on application prompt
I am running jirashell in a python script using the subprocess library. I am currently having issues having the outputs print in real time. When I run jirashell it outputs information than prompts the user (y/n). The subprocess won't print out…

tyleax
- 1,556
- 2
- 17
- 45
2
votes
2 answers
Asyncio stdout - failing
I'm trying to get to grips with using asyncio to speed up a process of calling an external tool to analyse multiple audio files. I'm working on windows, python 3.6 (anaconda installation) and the problem I'm having here is that the calls don't seem…

user3535074
- 1,268
- 8
- 26
- 48
2
votes
0 answers
when stdout is redirected to a file fflush is not enough
I have a C program with 9 calls to printf and I need it to run on a remote server for several days. So I decided to redirect the stdout to a file to check the progresses:
FILE *foutput=freopen("output.txt","w",stdout);
After some debugging I found…

GRquanti
- 527
- 8
- 23
2
votes
1 answer
bash can't capture output from aria2c to variable and stdout
I am trying to use aria2c to download a file. The command looks like this:
aria2c --http-user=$USER --http-passwd=$usepw -x 16 -s 100 $urlPath
The command works perfectly from the script when run this way. What I'm trying to do is capture the…

user1199956
- 109
- 1
- 10
2
votes
1 answer
I can't sys.stdout.seek
From what I know, sys.stdout is a file that represents the stdout of a terminal. However, when I try to use sys.stdout.seek, whatever parameters I give it, it throws an error:
IOError: [Errno 29] Illegal seek
What's going on? Is it the fact that…

BoxTechy
- 339
- 2
- 6
- 16
2
votes
2 answers
JNI printf to log4j
I call some C code via JNI from JAVA.
In my C, I do multiple printf that I want to log with log4j.
printf("Could not find HID device\n");
fflush(stdout);
They show up fine in the Eclipse console, with log4j I redirect the stdout to my…

Romain
- 151
- 1
- 12
2
votes
2 answers
Java read process output unbuffered / realtime
I want to read the stdout of a process right as it is generated.
The process will send information for a progress indicator, so it doesn't make sense that I get the information all at once, which I do and which is the problem. I tried to use Scanner…

Adder
- 5,708
- 1
- 28
- 56
2
votes
1 answer
node.js process.stdout.write TypeError
I am working on a simple function to create console-based prompts in node.js without the use of a bunch of extra libraries:
“““
function prompt(text, callback) { // Text can be a question or statement.
'use strict';
var input, output;
…

JBT
- 167
- 2
- 4
- 10
2
votes
1 answer
Process stdout or stderr redirected to files during subprocess.check_call
I have this code
fd_log_out = open(path_log_out, 'w')
fd_log_err = open(path_log_err, 'w')
subprocess.check_call(command, cwd=path, stdout=fd_log_out, stderr=fd_log_err)
I would like to process the stderr during the check_call to trigger an event…

Benjamin
- 3,350
- 4
- 24
- 49
2
votes
1 answer
STDOUT & STDERR from previous Command as Arguments for next Command
Somehow I don't find a sufficient answer to my problem, only parts of hackarounds.
I'm calling a single "chained" shell command (from a Node app), that starts a long-running update process, which it's stdout/-err should be handed over, as arguments,…

Tha Brad
- 148
- 12