I have two shell scripts, script5.sh
, and script4.sh
script5.sh
looks like this:
#!bin/bash
FILES=$1/*\txt
for f in $FILES
do
qsub -cwd /path/to/script4.sh $f
done
For script5.sh
I pass in a directory /path/to/DIRECTORY_A/where/I/want/certain/files/to/analyze
, and that's the $1
in $FILES
.
Then in script4.sh
I have a bunch of commands that analyze the files from the certain directory that I passed into script5.sh
.
IT throws this error when I try to qsub it.
error reason 1: 08/06/2014 10:41:16 [35391:30125]: execvp(/path/to/job_scripts/7858774_job_id, "/path/to/7858774_job_id" "/DIRECTORY_A/the_file_I_want") failed: No such file or directory
I KNOW there is a file DIRECTORY_A/the_file_I_want
, but I don't know why it's throwing this error.
I have no idea why it's doing this.
Does anyone have any ideas?