[Bio] / FigKernelScripts / svr_status_of_RAST_job.pl Repository:
ViewVC logotype

Annotation of /FigKernelScripts/svr_status_of_RAST_job.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (view) (download) (as text)

1 : olson 1.1
2 :    
3 :     use RASTserver;
4 :     use strict;
5 :    
6 :     #
7 :     # Usage: svr_status_of_RAST_job username password jobid [, jobid...]
8 :     #
9 :    
10 :     @ARGV > 2 or die "Usage: $0 username password jobid [ jobid jobid ... ]\n";
11 :    
12 :     my $username = shift;
13 :     my $password = shift;
14 :    
15 :     my @jobs = @ARGV;
16 :    
17 :     my $rast = new RASTserver($username, $password);
18 :    
19 :     my $res = $rast->status_of_RAST_job( { -job => \@jobs } );
20 :    
21 :     for my $job (@jobs)
22 :     {
23 :     my $status_hash = $res->{$job};
24 :     my $status = $status_hash->{status};
25 :     my $err_msg = "(error message: $status_hash->{error_msg})" if $status eq 'error';
26 :     print "status for job $job: $status $err_msg\n";
27 :     }

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3