1

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?

2 Answers 2

2

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

cmd arg1 & cmd arg2 & cmd arg3

for example

Sign up to request clarification or add additional context in comments.

1 Comment

Okay how would you do it if you both 2x start the same script with it and both need to access a file (write and read) because global block variables can not be set then?!
0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.