Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #108312 > unrolled thread

Re: redirecting stdout and stderr to /dev/null

Started byBen Finney <ben+python@benfinney.id.au>
First post2016-05-08 11:21 +1000
Last post2016-05-08 11:21 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: redirecting stdout and stderr to /dev/null Ben Finney <ben+python@benfinney.id.au> - 2016-05-08 11:21 +1000

#108312 — Re: redirecting stdout and stderr to /dev/null

FromBen Finney <ben+python@benfinney.id.au>
Date2016-05-08 11:21 +1000
SubjectRe: redirecting stdout and stderr to /dev/null
Message-ID<mailman.486.1462670489.32212.python-list@python.org>
Jim Dodgen <jim@dodgen.us> writes:

> I'm have problems redirecting stdout and stderr to /dev/null in a
> program that does a fork and exec.

You may be interested in the ‘python-daemon’ library
<URL:https://pypi.python.org/pypi/python-daemon/>. It takes care of all
the fiddly bits to turn your program into a well-behaved Unix daemon.

-- 
 \     “I wish there was a knob on the TV to turn up the intelligence. |
  `\          There's a knob called ‘brightness’ but it doesn't work.” |
_o__)                                             —Eugene P. Gallagher |
Ben Finney

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web