#!/bin/bash #PBS -A PCON0003 #PBS -l walltime=01:00:00 #PBS -l nodes=1:ppn=20 touch commandfile for value in {1..1000} do line="/path/to/your_command_to_run $value (arg1) (arg2)..(argn)" echo ${line}>> commandfile done module load pcp mpiexec parallel-command-processor commandfile