Skip to content

Commit 2795442

Browse files
committed
Add output file / path queries
1 parent 4fbfe7f commit 2795442

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

service-scripts/p3x-qstat.pl

+14
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ =head1 DESCRIPTION
2929
["start-time=s" => "Limit results to jobs submitted at or after this time"],
3030
["end-time=s" => "Limit results to jobs submitted before this time"],
3131
["genome-id" => "For genome annotation jobs, look up the genome ID if possible"],
32+
["show-output-file" => "Show the output filename"],
33+
["show-output-path" => "Show the output path"],
3234
["user|u=s" => "Limit results to the given user"],
3335
["cluster|c=s" => "Limit results to the given cluster"],
3436
["compute-node|N=s\@" => "Limit results to the given compute node", { default => [] }],
@@ -203,6 +205,16 @@ =head1 DESCRIPTION
203205
push(@cols, { title => "Indexing skipped" });
204206
}
205207

208+
if ($opt->show_output_file)
209+
{
210+
push(@cols, { title => "Ouput file" });
211+
}
212+
213+
if ($opt->show_output_path)
214+
{
215+
push(@cols, { title => "Ouput path" });
216+
}
217+
206218
if ($opt->parsable && !$opt->no_header)
207219
{
208220
say join("\t", map { $_->{title} } @cols);
@@ -269,6 +281,8 @@ =head1 DESCRIPTION
269281
$task->{req_cpu}, $task->{req_memory}, $task->{req_runtime},
270282
$task->{nodelist}, int($task->{maxrss})) : ());
271283
push(@row, $genome_id, $indexing_skipped) if $opt->genome_id;
284+
push(@row, $task->{output_file}) if $opt->show_output_file;
285+
push(@row, $task->{output_path}) if $opt->show_output_path;
272286
push(@rows, \@row);
273287

274288
if ($opt->parsable)

0 commit comments

Comments
 (0)