Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #188 from jaredbischof/develop

Removed semi-colon that was causing error when no command preceded it.  ...
  • Loading branch information...
commit 1745eacee025bee881ba32e220a774c0965a628b 2 parents b98b2d9 + bc06b55
@jaredbischof authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/MGRAST/cgi/upload.cgi
View
6 src/MGRAST/cgi/upload.cgi
@@ -541,6 +541,10 @@ if (scalar(@rest) && $rest[0] eq 'user_inbox') {
$data->[0]->{fileinfo}->{$sequence_file} = $info;
+ if($fix_file_str ne "") {
+ $fix_file_str .= ";";
+ }
+
# call the extended information
# temporarily allowing file_type to be '' because that's what the current version
# of the file command we are running returns for certain fastq files. When file
@@ -548,7 +552,7 @@ if (scalar(@rest) && $rest[0] eq 'user_inbox') {
if ($file_type eq 'ASCII text' || $file_type eq '') {
my $jobid = $user->{login};
$jobid =~ s/\s/_/g;
- my $jnum = `echo "$fix_file_str; $Conf::sequence_statistics -file '$sequence_file' -dir $udir -file_format $file_format -tmp_dir $udir/.tmp 2> $udir/$sequence_file.error_log; rm $lock_file;" | /usr/local/bin/qsub -q fast -j oe -N $jobid -l walltime=60:00:00 -m n -o $udir/.tmp`;
+ my $jnum = `echo "$fix_file_str $Conf::sequence_statistics -file '$sequence_file' -dir $udir -file_format $file_format -tmp_dir $udir/.tmp 2> $udir/$sequence_file.error_log; rm $lock_file;" | /usr/local/bin/qsub -q fast -j oe -N $jobid -l walltime=60:00:00 -m n -o $udir/.tmp`;
$jnum =~ s/^(.*)\.mcs\.anl\.gov/$1/;
open(FH, ">>$udir/.tmp/jobs");
print FH "$jnum";
Please sign in to comment.
Something went wrong with that request. Please try again.