I have a Python program that interfaces with the browser, and now I meed to make that as my background process, so that every time I click the button, the program should start running in the background.
Can anyone help me with an easy solution for this?
If the program is the current process in your shell, typing Ctrl-C will stop the Python program.
If you're on a Unix-like system (e.g. Mac OSX, Linux), the command is python myscript &
, which runs the command in the background. In general, in bash (as well as most other shells) if you append a &
to your command it runs the command in the background.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With