0

I want to create a shell script say job.sh that stores a collection of the python scripts. How can I run one or multiple selected scripts?

This is what I hope to have in job.sh

jobaias1:

python /path_to_script/script1.py $1 $2

jobaias2:

python /path_to_script/script2.py $1 $2

Then in terminal:

./job.sh jobalias1 arg1 arg2

or

./job.sh jobalias2 arg1 arg2

or

./job.sh jobalias1&&jobalias2 

Many thanks in advance

J_yang
  • 2,672
  • 8
  • 32
  • 61

0 Answers0