-
as seen on Server Fault
- Search for 'Server Fault'
I'm making a script that executes some commands inside, and these commands show some output on STDOUT (and STDERR as well, but that's no problem). I need that my script generates a .tar.gz file to STDOUT, so the output of some commands executed in the script also go to STDOUT and this ends with a…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm pretty new to Python so I am still just learning the language. One of the things I came across was reassigning sys.stdout to change the default output of print. So I wrote this as a test:
import sys
sys.stdout = open('log.txt','a')
print('hey')
sys.stdout.close()
sys.stdout = sys.__stdout__
print('hi')
Now…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
Hi,
I have been having this weird issue where mod_perl seems to lose STDOUT in the middle of the request. So far I have eliminated everything I could think of.
You might have seen this bug related to the following errors in error_log :
Apache2 IO flush: (103)
Apache2::RequestIO::read: (104)
Software…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
I would like get access to progress information from lftp. Currently, I'm using curl like so:
curl http://example.com/file -o file -L 2> download.log
This writes curl's progress information to the download.log file, which I can tail to get real-time progress.
But the same approach doesn't work…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
It's not easy to formulate the question properly, maybe it helps when I describe what I'd like to do.
I want to execute a command and pipe it's output into a tool called pastebinit which uploads the STDOUT output to pastebin.
That works very well, however I would like to send the command itself…
>>> More