Jeri has asked for the wisdom of the Perl Monks concerning the following question:
Hi Perl Monks! I've made a very simple example of my problem. $ARGV[0] is not capturing '1' from my qsub file. Should I not use $ARGV[0]? I've never done this before, and I thought I was going about it right. The code works on my local and remote computer, but complains when I sent it for batch processing.
This is my simple script
#!/usr/bin/perl5.8.8 use strict; use warnings; my $infile = $ARGV[0]; chomp $infile; open (my $INFILE,"<", $infile) close ($INFILE);
This is my qsub script
#PBS -t 1-10 #PBS -l walltime=48:00:00 /usr/bin/perl /chongle/jeri/timecheck/MUSCLEHMM.pl $PBS_ARRAYID > /cho +ngle/jeri/timecheck/output.$PBS_ARRAYID.txt 2> /chongle/jeri/timechec +k/error.$PBS_ARRAYID.txt
These are my errors
#Use of uninitialized value in concatenation (.) or string at line 18. #Use of uninitialized value in scalar chomp at /chongle/jeri/timecheck +/MUSCLEHMM.pl line 19. #Use of uninitialized value in open at /chongle#/jeri/timecheck/MUSCLE +HMM.pl line 20. #No such file or directory at /chongle/jeri/timecheck/MUSCLEHMM.pl lin +e 20.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PBS not finding file.
by onelesd (Pilgrim) on Sep 27, 2011 at 19:00 UTC | |
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 |