cubicweb #1330647 cubicweb-ctl : set stdout and stderr to be line buffered [resolved]
As sysadmin, I wrap cubicweb-ctl commands in scripts which redirect stdout/stderr to files. I need such output to be flushed on a regular basis. cubicweb-ctl needs to reopen the file descriptors (using os.fdopen) and force the buffering to "line buffered" (bufsize argument set to 0) | |
priority | normal |
---|---|
type | enhancement |
done in | 3.9.9 |
load left | 0.000 |
closed by | <not specified> |
similar entities
- cubicweb #343611 db-create should validate user input
- cubicweb-forge #1399287 Change the standard validation process of the tickets
- cubicweb #901407 support for backup/restore of bfss
- cubicweb #2231960 [cwctl] On-the-fly generation of pgpass file when doing postgres operations
- cubicweb #197665 locking strategies for concurrent edition
[see all]
Comments
-
2010/10/18 11:09
-
2010/10/18 12:28
add commentpython -u doesn't work with cubicweb-ctl ?
it should, but -u means "unbuffered binary output", and I don't want binary output (means the text printed on stdout won't display properly in (arg) notepad)