0
votes
0
comments
3,075
views

Maintaining Logging and/or stdout/stderr in Python Daemon

  • 0.00 / 5 5
0 votes, 0.00 avg. rating (0% score)
Every recipe that I’ve found for creating a daemon process in Python involves forking twice (for Unix) and then closing all open file descriptors. (See http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/ for an example). This is all simple enough but I seem to have an issue. On the production machine that I am setting up, my daemon is aborting – […]
0
votes
0
comments
1,107
views

A little help redirecting stderr to stdout

  • 0.00 / 5 5
0 votes, 0.00 avg. rating (0% score)
When writing shell scripts, there are times when I want to have the output captured and redirected into a file. Noticing that error messages from the script such as possible syntax errors are not written to the output file. This is because stderr and stdout are 2 separate file handles. Think of it as you […]