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


Groups > comp.lang.python > #38499

Spawn a process, then exit, whilst leaving process running?

X-Received by 10.224.176.196 with SMTP id bf4mr4664282qab.4.1360386273631; Fri, 08 Feb 2013 21:04:33 -0800 (PST)
X-Received by 10.49.87.9 with SMTP id t9mr640914qez.16.1360386273573; Fri, 08 Feb 2013 21:04:33 -0800 (PST)
Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!nx02.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!209.85.216.87.MISMATCH!p13no5434559qai.0!news-out.google.com!k2ni21154qap.0!nntp.google.com!p13no4185422qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Fri, 8 Feb 2013 21:04:33 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=60.240.62.62; posting-account=LMx4fAoAAAAL3v616YFvkt1ueXc1H63-
NNTP-Posting-Host 60.240.62.62
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <39ae6b0f-339e-4e50-8cb0-4c020c6aff76@googlegroups.com> (permalink)
Subject Spawn a process, then exit, whilst leaving process running?
From Victor Hooi <victorhooi@gmail.com>
Injection-Date Sat, 09 Feb 2013 05:04:33 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:38499

Show key headers only | View raw


Hi,

I have a Python script that I'd like to spawn a separate process (SSH client, in this case), and then have the script exit whilst the process continues to run.

I looked at Subprocess, however, that leaves the script running, and it's more for spawning processes and then dealing with their output.

Somebody mentioned multiprocessing, however, I'm not sure quite sure how that would work here.

What's the most Pythontic way of achieving this purpose?

Cheers,
Victor

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Spawn a process, then exit, whilst leaving process running? Victor Hooi <victorhooi@gmail.com> - 2013-02-08 21:04 -0800
  Re: Spawn a process, then exit, whilst leaving process running? Nobody <nobody@nowhere.com> - 2013-02-10 03:50 +0000

csiph-web