in reply to PBS not finding file.
There is nothing inherently wrong with your first code sample.
That said, you haven't made it clear how your "qsub script" ties into your example at all, and your error messages don't help us because they are not generated by your example code.
My (wild) guess is that you call your "simple script" but don't pass it an argument, or are not passing the correct argument, which I am guessing should be your "qsub script".
Try this:
my $infile = $ARGV[0]; die "can't read infile\n" if (! -r $infile);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PBS not finding file.
by Jeri (Scribe) on Sep 27, 2011 at 19:09 UTC | |
by Jeri (Scribe) on Sep 27, 2011 at 19:11 UTC | |
by onelesd (Pilgrim) on Sep 27, 2011 at 21:16 UTC |