Search Results

Search: Posts Made By: Mastaer
3,749
Posted By Corona688
There is a mysterious variable Python responds...
There is a mysterious variable Python responds to, actually!
export PYTHONUNBUFFERED=1

./myscript >> file &

I don't think stdbuf is applicable unless you're writing to a pipe or TTY. Block or...
3,749
Posted By Corona688
It doesn't hurt the script or your system to...
It doesn't hurt the script or your system to hard-kill it, no -- but it certainly doesn't do what you want.

Python does single writes every 4096 bytes because this more efficient than doing 50...
3,749
Posted By jim mcnamara
You have to trap the signal and flush the output...
You have to trap the signal and flush the output file descriptor.

I do not know python signal handling, but you should trap SIGTERM. This is the signal kill sends by default. A generic trap...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy