0

Is it possible for the os or the subprocess modules in Python to run a file or a task in the background?

Say I were to integrate certain keystrokes such that while the script is running, those certain keystrokes will trigger a certain subprocess.call(...) than shall open up only in the background i.e, without moving me out of my active window.

Anupam Dash
  • 11
  • 1
  • 2
  • Yes it is definitely possible, but i don't have much experience with subprocess. You may find this helpful : https://stackoverflow.com/a/37059478/14976549 – 0xB00B Jan 17 '21 at 05:51
  • Does this answer your question? [How can I run an external command asynchronously from Python?](https://stackoverflow.com/questions/636561/how-can-i-run-an-external-command-asynchronously-from-python) – Albin Paul Jan 17 '21 at 05:58
  • @AlbinPaul I'll check that out in a bit and then accordingly answer your suggestion. Much thanks! – Anupam Dash Jan 17 '21 at 06:09

0 Answers0