-
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 Super User
- Search for 'Super User'
Hi when I use the command
crontab -e
to set up cron, the commands get triggered (according to syslog) but nothing happens. Also if I run sudo crontab -e.
The only way to actually get cron working is to manually etc
/etc/crontab
I'm confused, since syslog gives me the same output for both methods…
>>> More