I have an executable that takes one input file and have been running it like so, submitting as a job to pbs using qsub: I have a script (runpp_multi.sh) to make it run on multiple files in a directory: These both work fine, but obviously there’s a problem if I submit the script that runs on multiple files with qsub: