Create new processes over telnet in XP

Jorgen Grahn grahn+nntp at snipabacken.dyndns.org
Fri Mar 23 10:43:21 EDT 2007


On 23 Mar 2007 03:47:14 -0700, Godzilla <godzillaismad at gmail.com> wrote:
> Hello,
>
> How do you create/spawn new processes in XP over telnet using python?
> I.e. I would like to create a new process and have it running in the
> background...

Ssh -- or even rsh -- are better choices than telnet for these things.
For some reason, they are not standard in Windows, though.

  ssh somewhere some command with arguments
  rsh somewhere some command with arguments

compared to

  telnet somewhere

and then performing expect-like things (basically simulating
someone typing "some command with arguments" in the telnet
session).

> when I terminate the telnet connection, I would what the
> spawned processes to keep running until I shut it off...

That's a function of the remote OS; what happens when its terminal
goes away is not under the control of the client side.

/Jorgen

-- 
  // Jorgen Grahn <grahn@        Ph'nglui mglw'nafh Cthulhu
\X/     snipabacken.dyndns.org>  R'lyeh wgah'nagl fhtagn!



More information about the Python-list mailing list