From your code, in the 2nd case, you do not specify where a file named 'testFile' is created. It will be created in the current working directory, which may or may not be what you intended.
Also in the second case "$testFile" will be set to something that looks like a directory, "$runPath/". Does "$runTest.pl" expect this for its -f argument? From your description I have no idea what "$runTest.pl" is supposed to do.
I suspect that the other commentators are on the right track in that you intent was to read the files in the specified directories.
It might also be useful if you provided a more complete code snippet.
In reply to Re: pass one or more directories into a file and use that as INPUT to a called script
by wazat
in thread pass one or more directories into a file and use that as INPUT to a called script
by noviceuser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |