App-FQStat
view release on metacpan or search on metacpan
lib/App/FQStat/Actions.pm view on Meta::CPAN
if ($match eq 'err') { $err = $line }
else { $out = $line }
last if defined $out and defined $err;
}
elsif ( $line =~ /^cwd:/ ) {
$cwd = $line;
$cwd =~ s/^cwd:\s*//;
chomp $cwd;
}
}
$err =~ s/^stderr_path_list:\s*// if defined $err;
$out =~ s/^stdout_path_list:\s*// if defined $out;
if ( not defined $cwd ) {
print "Could not determine current working directory for locating the logs.\n";
my $tmp = get_input_key(300);
return 1;
}
elsif ( not defined $out and not defined $err ) {
# couldn't find log
print "No log could be found for this job. Owner didn't set stdout nor stderr redirection?\n";
my $tmp = get_input_key(300);
return 1;
}
elsif ( defined $out and defined $err and $out eq $err ) {
undef $err; # only show once
}
my $cmd;
if (defined $out) {
if ($out !~ /^\//) {
( run in 0.716 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )