Re: [python-win32] Inheriting a command line - or how to efficiently replace Unix' os.execvpe

2021-05-12 Thread Eryk Sun
On 5/12/21, Sebastian M. Ernst wrote: > > It starts the new process more or less like a child, but does not allow it to > control the command line. Instead, both the Python process and the child > die. The child merely manages to produce a few lines of output before that. First let's go over some

[python-win32] Inheriting a command line - or how to efficiently replace Unix' os.execvpe

2021-05-12 Thread Sebastian M. Ernst
Hi all, I am dealing with a Python script line - which does, after some preparation work, launch `ssh` (Windows 10 does have native `OpenSSH` now). My script is actually a small CLI tool. On Unix-like systems, at the end of its life, the Python script replaces itself with the `ssh` client, so the