How to run to scripts at the terminal using && as in linux? Follow
The scripts take a long time so I want to just execute them both at once (in series) but I get:
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
How can I do it?
Please sign in to leave a comment.
Hi, are you talking about Python scripts, Shell scripts, or something else?
If you're talking about Python scripts, please note that you can enable "Allow parallel run" in the run/debug configuration.
Hi,
Shell scripts, I want to run them like bash.
$ python script1.py && python script2.py
So it will run script1.py, when I ends it will run script2.py
Well, you can write a shell script and use the respective configuration to run it.
Alternatively, you can use "before launch" option of the run/debug configuration to run another python configuration before running the current one.
I managed to do it using ;
python test1.py ; python test2.py
test1
test2
:)