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


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

Re: redirecting stdout and stderr to /dev/null

Started byJim Dodgen <jim@dodgen.us>
First post2016-05-07 17:18 -0700
Last post2016-05-07 17:18 -0700
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 Jim Dodgen <jim@dodgen.us> - 2016-05-07 17:18 -0700

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

FromJim Dodgen <jim@dodgen.us>
Date2016-05-07 17:18 -0700
SubjectRe: redirecting stdout and stderr to /dev/null
Message-ID<mailman.485.1462666738.32212.python-list@python.org>
Thanks Chris

I now have things working using a version 3.4.3 it finds subprocess.DEVNULL
just fine

*Jim Dodgen*







On Sat, May 7, 2016 at 5:10 PM, Chris Angelico <rosuav@gmail.com> wrote:

> On Sun, May 8, 2016 at 9:54 AM, Jim Dodgen <jim@dodgen.us> wrote:
> > The empty token is needed but useless, it is arg[0] most people just
> repeat
> > the program name
>
> Far from useless. It's how a process learns its own name, and yes,
> repeating the image name is the most common way to provide that.
>
> > One other observation it looks as Popen behaves the same way as my fork
> > exec would
>
> Indeed. In fact, I would strongly recommend never using an explicit
> fork/exec from Python - always use subprocess or equivalent. On
> non-Unix platforms, fork/exec may not be available, but subprocess can
> use other methods of invoking programs.
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>

[toc] | [standalone]


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


csiph-web