The standard output stream (stdout) is the stream where a program writes its output data.

learn more… | top users | synonyms

1
vote
1answer
15 views

python log stderr and stdout to a file

Just wanted to pick your brains on this. I have several subprocesses running and I wanted to print the stderr and stdout to a file. I've done this so far: def write_to_stderr_log(process): ...
0
votes
3answers
39 views

Piping output from one program to another not working for this particular program

I expect this is a basic question, but I haven't been able to find an answer. I'm building a web server in C++, and in order to help me visualise the system as it's running I'm building a separate ...
0
votes
1answer
13 views

Redirecting STDERR and STDOUT in a DOSKEY macro

I am trying to define a DOSKEY macro that redirects both STDOUT and STDERR output to a file. The doskey will be set by running a batch file. I can do this for STDOUT only with the following: doskey ...
0
votes
3answers
66 views

C language. Read from stdout

I have some troubles with a library function. I have to write some C code that uses a library function which prints on the screen its internal steps. I am not interested to its return value, but only ...
1
vote
1answer
31 views

When groovy calls bash, debug mode “-x” is not visible in the standard output

We're using groovy to execute a bash script that has debug mode set -x in it. We're running it like so: def proc = "bash hello.sh".execute() proc.in.eachLine { line -> println line } ...
0
votes
1answer
22 views

display current process stdout in PySide QTextEdit box

I'd like to display all stdout from a python/PySide application in a QTextEdit box but all I can find is how to capture stdout from a subprocess. Is this even possible to to? Ideally I'd like to ...
0
votes
0answers
10 views

Redirecting standard output and standard error to somewhere on an Excel workbook

I have a process written in VBScript that writes to the standard output and standard error streams. It has a fairly elaborate command line interface and I provide (following persuasion by colleagues) ...
1
vote
2answers
37 views

c shell input redirection stays open

I'm using the following code part to perform input redirection for my custom C++ shell. While the output redirection similar to this works well, the child process for the input redirection stays open ...
0
votes
0answers
16 views

Log STDOUT and STDERR with SLF4J, but run as a daemon

I found this earlier today and it solved an issue I had very nicely: Redirect System.out and System.err to slf4j However, it resulted in another issue: to make this work, I couldn't close stdout and ...
0
votes
0answers
43 views

Read node.js by line from endless stream

I have an endless command line stream - namely logs from my heroku app - and want to parse it by line into node.js. I have tried various approaches, like with the readline interface (does nothing): ...
1
vote
1answer
26 views

Redirecting subprocess stdout

I've set up a stdout redirect using the class Redir in test.py (below). The output should show both print statements in the textbox. But currently only "Output1" is sent to the textbox and "Output2" ...
0
votes
0answers
40 views

stdout redirection to a function and back to stdout

I would like any issues (printf, std::cout, etc..) which will go to the stdout Redirect by a function. The function returns the stream continues to stdout. like: printf("Something") -> (Way to ...
1
vote
1answer
29 views

Dynamic generation of file contents (poor man's proc file)

I'm trying to make a simple userspace program that dynamically generates file contents when a file is read, much like a virtual filesystem. I know there are programs like FUSE, but they seem a bit ...
0
votes
0answers
32 views

python sys.std.write is scattered

I am wonder why sys.stdout.write() in python does not call write() in one chunk but separated by newline. I think this would cause a lag if the result is print over the network communication for ...
0
votes
1answer
21 views

How to read executables stdout stderr from Java code?

AFAIK, one can run a command line executable from Java using Runtime. And even get error code with processes WaitFor(). But how can I read executables output? Both stdout and stderr?

1 2 3 4 5 79
15 30 50 per page