RobertoDeAlba
asked on
Launching scripts in several terminals
Hello
I have an python scripts that write to the shell terminal
Now I need to launch several instances of the scripts with a shell for each one,
How can I perform this??
I have an python scripts that write to the shell terminal
Now I need to launch several instances of the scripts with a shell for each one,
How can I perform this??
It's not actually a Python question because use launch a Python (and any other) script _outside_ of Python,
i.e. bash> python script.py
So use bash (or whatever other environment you hace) capabilities to do so like
bash> python script1.py &
bash> python script2.py &
bash> ps
and see both scripts running simultaneously.
i.e. bash> python script.py
So use bash (or whatever other environment you hace) capabilities to do so like
bash> python script1.py &
bash> python script2.py &
bash> ps
and see both scripts running simultaneously.
ASKER
Mish33
I was thinking about it,
But does Is htere a way to do it under python?
I was thinking about it,
But does Is htere a way to do it under python?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Something that will help me alot is to be aware when any of the launched scripts finished,
so I can deceide if relaunche it or not regarding some conditions.