Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

popen

Keep a subprocess alive and keep giving it commands? Python

August 14, 2022 by Magenaut

If I spawn a new subprocess in python with a given command (let’s say I start the python interpreter with the python command), how can I send new data to the process (via STDIN)?

Categories Python, Q&A Tags popen, process, python, subprocess Leave a comment

Launch a shell command with in a python script, wait for the termination and return to the script

August 13, 2022 by Magenaut

I’ve a python script that has to launch a shell command for every file in a dir:

Categories Python, Q&A Tags os.execl, popen, python, subprocess Leave a comment

How do I eliminate Windows consoles from spawned processes in Python (2.7)?

August 13, 2022 by Magenaut

Possible Duplicate:
Running a process in pythonw with Popen without a console

Categories Python, Q&A Tags popen, python, subprocess, windows Leave a comment

python subprocess Popen environment PATH?

August 12, 2022 by Magenaut

Suppose there’s an executable and a Python script to launch it, and they’re located in ‘sibling’ subdirectories, e.g.

Categories Python, Q&A Tags environment, path, popen, python, subprocess Leave a comment

Launch a totally independent process from Python

August 12, 2022 by Magenaut

I’m trying to launch a completely independent process from python. I can’t use something simple like os.startfile since I need to pass arguments. Currently I’m using subprocess.popen which gets me 90% of the way there.

Categories Python, Q&A Tags popen, python, windows-installer Leave a comment

How to run a background process and do *not* wait?

August 12, 2022 by Magenaut

My goal is simple: kick off rsync and DO NOT WAIT.

Categories Python, Q&A Tags background-process, popen, python, subprocess Leave a comment

Opening a process with Popen and getting the PID

August 11, 2022 by Magenaut

I’m working on a nifty little function:

Categories Python, Q&A Tags popen, python, subprocess Leave a comment
Newer posts
← Previous Page1 Page2
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress