简体   繁体   中英

Running Multiple Monkey Runner (Python script)Program from a single script

For single program we use -->

./monkeyrunner Python_prog_name.py 

Likewise i want to run 4 small programs... How will i run those 4 programs from a single script ?

Assuming from your question that you're unfamiliar with the Unix shell....

If you want to run them one at a time, create and execute a script with the following contents:

./monkeyrunner Python_prog_name1.py 
./monkeyrunner Python_prog_name2.py 
./monkeyrunner Python_prog_name3.py 
./monkeyrunner Python_prog_name4.py 

If you want to run them all at once, create and execute a script with the following contents:

./monkeyrunner Python_prog_name1.py &
./monkeyrunner Python_prog_name2.py &
./monkeyrunner Python_prog_name3.py &
./monkeyrunner Python_prog_name4.py &

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM