The standard output stream (stdout) is the stream where a program writes its output data.
Questions tagged [stdout]
4740 questions
2
votes
0 answers
capture STDOut from already running process in c#
Lets say I have some kind of console app currently running, not started by my app. (Could be a cmd.exe or some sort of console app)
How do I get my app to read all the text (stdout/stderr) in inside that app?

Rurido
- 53
- 5
2
votes
0 answers
Are remotely operated (SSH) printouts in python scripts blocking?
Suppose I ssh from computer A into computer B and run a python script on B which is something like the following:
...
print "Hello World"
foo()
...
Will function foo():
Be executed immediately following the print ... statement?
Or will it be…

Will Andrew
- 693
- 1
- 10
- 29
2
votes
2 answers
Find where PHP script outputs a string
When I run php someScript.php I get some expected output and some unexpected strings. They look like debugging strings and were probably placed there during development. The file is a part of a larger framework and can include other files that can…

user2583501
- 33
- 5
2
votes
2 answers
HackerRank Python print STDOUT doesn't seem to work
I am very new to Python so am trying out the 'Counting Valleys' question on HackerRank.
I have written my solution in PyCharm and it works fine/gives the correct answer to the expected output of the solution.
I have tried to search on this site…

sridg
- 137
- 2
- 6
2
votes
2 answers
How to get CodeDeploy event logs even when they are successful?
I work on a deployment process using AWS CodeDeploy. When there is a failure in one of the scripts specified in appspec.yml, you get this nice little log output giving back STDOUT:
However, when all events are successful, it seems there is no way…

cellover
- 419
- 5
- 19
2
votes
1 answer
Why does `sys.stderr` and `sys.stdout` put a number at the end on the shell, but not in a module - python
Basically my question is the title,
so for example in shell:
>>> import sys
>>> sys.stdout.write('Hello')
Hello5
(same with stderr)
But from a file:
import sys
sys.stdout.write('Hello')
Output:
Hello
(same with stderr)
So why is this happening???

U13-Forward
- 69,221
- 14
- 89
- 114
2
votes
1 answer
NodeJS: How to read stdout and stderr of a child process spawned by an explicitly spawned process?
I've recently been working on a on-demand build server. The build server is a NodeJS/Express REST API, which essentially wraps the Angular CLI and associated build tooling for completing a custom on-demand Angular application.
Everything is working…

mattezell
- 607
- 1
- 6
- 13
2
votes
2 answers
sending a file to stdout in C
I need to write a plain PPM file to the standard output. I have it creating the PPM file and everything, I just cannot figure out how to get it to send it to the standard output.
Any help you can provide is greatly appreciated,

belzinga
- 21
- 1
- 2
2
votes
2 answers
How to stop logging access log to stdout with Quart Python
I have microservice written in Quart python. I would like to stop logging on to stdout. So far I have tried app.logger.disabled = True and Flask alike
import logging
log = logging.getLogger('werkzeug')
log.setLevel(logging.ERROR)
Havent achieved…

aCoopML
- 21
- 2
2
votes
0 answers
Disable stdout output in UART
When PetaLinux is loaded, messages are sent to the screen and duplicated in the UART(dev/ttyPS0), which I need to use for data exchange. How to disable stdout output in UART?

Sergey Kolybelnikov
- 31
- 1
2
votes
2 answers
setting up trees of renderers in structlog
How would I configure structlog such that all messages including above info would go to stdout using a KeyValueRenderer while all logging would also go to a file using a JSONRenderer?
note: I only want to use structlog, no standard library stuff

Chris Withers
- 10,837
- 4
- 33
- 51
2
votes
1 answer
Why is Process.StandardOutput different from the actual output and/or incomplete?
Well, first of all, when executing PsExec commands from C#, part of the output is in the StandardOutput and another part is in the StandardError for some reason, as mentioned in other posts, but that's not big of a deal.
Now, the problem is: Even…

41686d6564 stands w. Palestine
- 19,168
- 12
- 41
- 79
2
votes
0 answers
Python logging is printed twice (1 formatted, 1 not formatted) when calling other python packages
I have my own logging setup:
def init_logger(level, name):
"""
Create logger and its handlers, and set them to the given level
"""
from logging.handlers import RotatingFileHandler
logger = logging.getLogger(name)
# set level…

pip
- 185
- 2
- 2
- 12
2
votes
1 answer
Python print not working with codecs
I keep running into errors with unicode while printing things from wikipedia out in my console. I found a solution (that doesnt make my console crash when trying to use weird characters like Ł) and the solution was putting this at the top of my main…

Pookie
- 1,239
- 1
- 14
- 44
2
votes
1 answer
writing sysdig output to a file
I want to check my users commands on my server for a period of time so I use sysdig command with nohup. I want to write output to a file like so:
# nohup sysdig -c spy_users 1>>/path/to/true 2>>/path/to/false &
But result is not written to file…

yasin
- 107
- 10