New answers tagged subprocess
0 votes
Run process as admin with subprocess.run in python
I've myself built a powershell wrapper to elevate a process and get it's stdout/stderr and exit code. From there, you can run whatever command you like from an elevated powershell script. I've put all ...
0 votes
How to Runas App with another admin user in Windows
I've myself built a powershell wrapper to elevate a process and get it's stdout/stderr and exit code. From there, you can run whatever elevated command you want. I've put all of this into a Python ...
0 votes
Initialize interpeter before it runs main script
You could modify your script to listen to a named-pipe, if you don't want an http server, and just "do its thing" whenever new input data arrives- instead of starting a new process. To ...
2 votes
Initialize interpeter before it runs main script
You can try multiprocessing.Pool with initializer which is built specifically for do costly init once then receive tasks from multiprocessing import Pool import runpy def init_worker():# runs once ...
Top 50 recent answers are included
Related Tags
subprocess × 12331python × 10957
python-3.x × 1913
popen × 1120
python-2.7 × 864
linux × 674
windows × 623
shell × 619
bash × 592
pipe × 396
stdout × 363
multithreading × 303
ffmpeg × 221
multiprocessing × 213
ssh × 178
django × 170
process × 165
cmd × 163
tkinter × 155
stdin × 152
terminal × 147
command-line × 131
os.system × 131
java × 127
unix × 125