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.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|