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


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

Re: Struggling with python-daemon and subprocess module to work together

Started byDan Stromberg <drsalists@gmail.com>
First post2014-10-21 16:21 -0700
Last post2014-10-21 16:21 -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: Struggling with python-daemon and subprocess module to work together Dan Stromberg <drsalists@gmail.com> - 2014-10-21 16:21 -0700

#79404 — Re: Struggling with python-daemon and subprocess module to work together

FromDan Stromberg <drsalists@gmail.com>
Date2014-10-21 16:21 -0700
SubjectRe: Struggling with python-daemon and subprocess module to work together
Message-ID<mailman.15050.1413934126.18130.python-list@python.org>
On Mon, Oct 20, 2014 at 2:16 AM, Praveen Kumar
<kumarpraveen.nitdgp@gmail.com> wrote:
> I am writing a very basic server side application[0] which get data
> from a client and create a virtual machine using provided data and
> also tells client about what's going on during *virt-install* command
> execution. Previously this basic server is executed using *openvt* but
> I thought it would be nice to have a daemon process for it and used
> python-daemon.
>
> Issue I am facing is after some time server will stop sending data to
> client which suppose to happen in #120 and get error message "Cannot
> run interactive console without a controlling TTY" . I am not able to
> figure out issue is occurred due to module or I missed something
> during daemon initialization.

I believe you either want a pty, to make your interactive application
believe it's on a tty, or a redesign.

Here's some Python pty code:
http://stromberg.dnsalias.org/~strombrg/pypty/

I imagine pexpect might help too, though I tend to favor going
directly to a pty.

HTH

[toc] | [standalone]


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


csiph-web