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

View of /FigKernelScripts/svr_status_of_RAST_job.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (as text) (annotate)
Tue Oct 20 21:23:55 2009 UTC (10 years, 7 months ago) by olson
Branch: MAIN
user script for rast job status


use RASTserver;
use strict;

#
# Usage: svr_status_of_RAST_job username password jobid [, jobid...]
#

@ARGV > 2 or die "Usage: $0 username password jobid [ jobid jobid ... ]\n";

my $username = shift;
my $password = shift;

my @jobs = @ARGV;

my $rast = new RASTserver($username, $password);

my $res = $rast->status_of_RAST_job( { -job => \@jobs } );

for my $job (@jobs)
{
    my $status_hash = $res->{$job};
    my $status = $status_hash->{status};
    my $err_msg = "(error message: $status_hash->{error_msg})" if $status eq 'error';
    print "status for job $job: $status $err_msg\n";
}

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3