0

I have 15 python scripts need to be run. I know I can sbatch them one by one, but that's too tricky. Is there a way I put all of them in one file, and let them be executed them?

I'll add more detail. Right now, i have 15 python files, which correspond to 15 .sh files. But i don't want to sbatch them one by one manually. So can i write a run.sh to put all the 15 .sh files into it, thereafter i only need do

sbatch run.sh

. Then all the work can be done.

Ivy Gao
  • 111
  • 1
  • 8

1 Answers1

0

I think this question needs a bit more clarification. The question says simultaneously but then in the body you say one by one?

I do not know if this is exactly what you want, but you can try Python's os.system(exe) where exe would be the command you want to execute (e.g.: python foo.py bar1 bar2), and just have a Python script with all the executions.

Oriol Miró
  • 135
  • 4
  • 12