python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why does subprocess stdout only produce one line when the process is killed with os.kill()?
I have a piece of code that opens a subprocess and writes the output to a file:
logPath = '/path/to/some/directory/'
log = open(logPath + 'log', 'a')
guipid = subprocess.Popen(SomeGuiApplication, ...

Daniel Klisiewicz
Votes: 0
Answers: 1
Read output from GNU GCC Compiler
I'm actually making a program in Python to run my C and C++ codes
When i tried to read the stdout of gcc, they return me nothing, an empty string
import subprocess
output = ''
cam = "g++ main.cp...
José
Votes: 0
Answers: 1
Capturing the *complete* output stream of a child_process in NodeJS
I've been trying to capture the output of a child_process for a while now. The following code example is my current attempt.
Code:
// Spawning a shell
var terminal = require('child_process').spawn(`sh...
santcleep
Votes: 0
Answers: 1
Why is the output order different from the call order when using fprintf with stdout or stderr?
My environment is Debian GNU/Linux 11.
The fprintf function with param stdout or stderr gives unexpected output order.
int main() {
std::cout << "Hello, World!" << std::endl;...
Tom
Votes: 0
Answers: 1