The standard output stream (stdout) is the stream where a program writes its output data.
Questions tagged [stdout]
4740 questions
2
votes
1 answer
Redirecting the darknet program's result to log file
I'm trying to redirect the results of darknet(yolo) program to my log file.
But there are some troubles in redirecting the result.
I tried ./darknet detect cfg/yolo.cfg yolo.weights image.jpg > log.txt, but it doesn't work.
And also other…

Sihwan Park
- 21
- 1
- 3
2
votes
1 answer
Perl system() requires stdout flush
I have a problem similar to bash script flush but would appreciate confirmation and clarification:
I have a console-based, interactive perl script that writes to stdout. Along the way, it uses system() to call a C program, and its output (also to…

cniggeler
- 103
- 1
- 9
2
votes
0 answers
Ipython Have all outputs to stdout be included in history
Is there a way to have print statements be considered a valid output in python so that they appear in %history -o.
The needs is to create doc-tests from a session, however only returns are added to the history. Writes to stdout and err are not.…

Tonis F. Piip
- 776
- 2
- 6
- 16
2
votes
2 answers
SSH, run process and then ignore the output
I have a command that will SSH and run a script after SSH'ing. The script runs a binary file.
Once the script is done, I can type any key and my local terminal goes back to its normal state. However, since the process is still running in the machine…

Lansana Camara
- 9,497
- 11
- 47
- 87
2
votes
1 answer
Preserve order of `stdout` and `stderr` output of `child_process.spawnSync` subprocess in Node.js
const spawnSync = require('child_process').spawnSync;
let x = spawnSync('bash', ['-c', 'echo "1stdout" ; echo "2stderr" >&2 ; echo "3stdout"']);
(The bash command is only an example. The command could be ls or wget or git - doesn't matter.)
Of…

finefoot
- 9,914
- 7
- 59
- 102
2
votes
2 answers
Perl script to log external executables output and error while that still runs
I have a Perl script, which runs an external executable. That executable runs for a while (sometimes seconds, sometimes an hour), can spit out text to both STDOUT and STDERR as well as an exit code, which all are needed. Following code demonstrates…

uldics
- 117
- 1
- 11
2
votes
1 answer
file.write() and sys.stdout.write() are giving me two different outputs - Python
The code below takes a JPEG image and converts it to a string. That string is then saved into the image variable. Then, the string is written to a.jpg using File IO and then written to b.jpg by me piping stdout to the file.
import thumb
import…

dave
- 7,717
- 19
- 68
- 100
2
votes
2 answers
Haskell: start a long running process, silently, capturing stdout
I have a long running process which I need to start.
It takes a few seconds to start, and outputs logs to stdout, with one that indicates it is ready.
I would like to:
start the process silently, so that the stdout from the process is not…

tmortiboy
- 485
- 3
- 10
2
votes
0 answers
No stdout/stdin when calling python script from powershell
I've got a strange situation, that makes me feel I went wrong at some point.
Environment: I'm running powershell .ps1 script (tried both: powershell and ISE) on Windows 10. In this script I'm runing python (2.7.14) script.
The issue is that I cannot…

Warej
- 81
- 1
- 1
- 5
2
votes
0 answers
VSCode C Programming error "identifier stdin/stdout is undefined" macOS 10.13
I keep receiving undefined identifier errors when invoking stdin and stdout despite having included stdio.h. I have looked for solutions to this but haven't found anything yet. Weirdly the program is still able to compile. I have already instructed…

Nightmayr
- 21
- 3
2
votes
1 answer
How to send openssl s_client -connect stdout and stderr to /dev/null?
I have following bash script that checks the existence of a given SSL client certificate in Apache.
#!/bin/bash
cert=$1
echo | openssl s_client -connect localhost:443 | grep -q $cert > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo $cert "client cert…

Ishtiaque Daudpota
- 23
- 1
- 4
2
votes
1 answer
ValueError: I/O operation on closed file error
i need help please i try to solve this issue since 2 days ago without success and im new in python please do changes in the code and explain :
this is the code it's and arp scanner via scapy it's take the result from scapy scanning and save the…

evilcode1
- 111
- 2
- 10
2
votes
2 answers
Python3 http.server : save log to a file
I use Python3.6 to write a simple HTTP server to redirect all requests.
The file I written can be found here
I can see output in both Win8.1 CMD & Ubuntu 16.04.3 Bash.
However , whatever I try any of those methods below , it doesn't work , the log…

PotatoChips
- 189
- 2
- 12
2
votes
1 answer
Concurrent cout formatting
This is an academic question.
sdt::mutex m;
typedef std::lock_guard G;
void thread1(){
G g(m);
std::cout << std::setw(9);
std::cout << 3.14;
std::cout << std::endl;
}
void thread2(){
G g(m);
std::cout <<…

Notinlist
- 16,144
- 10
- 57
- 99
2
votes
1 answer
SDL2 No Console Output on Windows
I've tried just about everything I can think of. I just cannot get SDL2 to output anything to the console. Both Windows PowerShell and Command Prompt show no output. There's also no stdout.txt file. cout, cerr, SDL_Log("..."), none work.
#define…

Aran Bins
- 449
- 10
- 20