How to run to scripts at the terminal using && as in linux?

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?

4 comments
Comment actions Permalink

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.

0
Comment actions Permalink

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

0
Comment actions Permalink

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.

0
Comment actions Permalink

I managed to do it using ; 

python test1.py ; python test2.py 
test1
test2

:)

0

Please sign in to leave a comment.