Home > OS >  Run Python script multiple times at the same time?
Run Python script multiple times at the same time?

Time:10-19

Hey I have the following "problem". I am currently writing a python script that checks certificates for CRL. You give this script the certificate in the command line and it checks it. This script should now be started several times in the Linux terminal at the same time. Does this work with a normal script without multithreading or _threads or do I need something like this? If yes, which library do you recommend?

CodePudding user response:

you can run multiple shell commands by using & between commands to run them in parallel:

cmd arg1 & cmd arg2 & cmd arg3

for example

CodePudding user response:

There are several way to do this.

Using only bash, See Here

Using Parallel package, See Here

Install parallel before using it with sudo apt install parallel -y.

  • Related