Top "Stdout" questions

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

Capture stdout from a script?

suppose there is a script doing something like this: # module writer.py import sys def write(): sys.stdout.write("foobar") …

python stdout sys
log4j redirect stdout to DailyRollingFileAppender

I have a java app that uses log4j. Config: log4j.rootLogger=info, file log4j.appender.file=org.…

java file redirect log4j stdout
Run Java class file from PHP script on a website

I have a website and want to be able to allow the user to run a Java file on the …

java php scripting stdout
Saving stdout from subprocess.Popen to file, plus writing more stuff to the file

I'm writing a python script that uses subprocess.Popen to execute two programs (from compiled C code) which each produce …

python linux subprocess stdout python-2.4
The difference between stdout and STDOUT_FILENO

I was wondering the difference between stdout and STDOUT_FILENO in Linux C. After some searching work, I draw the …

c linux stdout
How to pipe stdout while keeping it on screen ? (and not to a output file)

I would like to pipe standard output of a program while keeping it on screen. With a simple example (echo …

bash shell pipe output stdout
Capturing stdout from a system() command optimally

I'm trying to start an external application through system() - for example, system("ls"). I would like to capture its …

c++ c system stdout
How do file descriptors work?

Can someone tell me why this does not work? I'm playing around with file descriptors, but feel a little lost. #!/…

bash shell stdout stdin file-descriptor
Bash script - store stderr in a variable

I'm writing a script to backup a database. I have the following line: mysqldump --user=$dbuser --password=$dbpswd \ --host=$host $…

bash scripting redirect stdout stderr
How to make python 3 print() utf8

How can I make python 3 (3.1) print("Some text") to stdout in UTF-8, or how to output raw bytes? Test.py …

python-3.x unicode encoding utf-8 stdout