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?

Newsgroups comp.lang.python
Date 2013-02-08 21:04 -0800
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>

Show all headers | 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