#!/usr/bin/perl -w
use lib "$ENV{'ARBHOME'}/lib/";
use ARB;

$gb_main = ARB::open(":","r");
if (! $gb_main ) {
    $error = ARB::await_error();
    print ("Error: $error\n");
    exit 0;
}

BIO::remote_action($gb_main,"ARB_NT","ARB_NT/SEARCH_SPECIES");
BIO::remote_awar($gb_main,"ARB_NT","tmp/arbdb_query_0/ere","1");
BIO::remote_awar($gb_main,"ARB_NT","tmp/arbdb_query_0/ere","0");
BIO::remote_awar($gb_main,"ARB_NT","tmp/arbdb_query_0/by","2");
BIO::remote_awar($gb_main,"ARB_NT","tmp/arbdb_query_0/by","1");
BIO::remote_awar($gb_main,"ARB_NT","tmp/arbdb_query_0/query","a*");
BIO::remote_awar($gb_main,"ARB_NT","tmp/arbdb_query_0/key","acc");
BIO::remote_awar($gb_main,"ARB_NT","tmp/arbdb_query_0/key","name");
BIO::remote_action($gb_main,"ARB_NT","SPECIES_QUERY/SEARCH");
BIO::remote_action($gb_main,"ARB_NT","SPECIES_QUERY/MARK_LISTED_UNMARK_REST");
BIO::remote_action($gb_main,"ARB_NT","SPECIES_QUERY/CLOSE");
ARB::close($gb_main);
