#!/usr/bin/perl
use strict;
use warnings;

use lib "$ENV{'ARBHOME'}/lib/";
use ARB;

my $gb_main = ARB::open(":","r");
if (not $gb_main) {
  my $error = ARB::await_error();
  die "$error";
}

# recording started @ Tue Jun 17 11:43:33 2014
BIO::remote_awar($gb_main,'ARB_NT','tmp/etc/security_level','6');
BIO::remote_action($gb_main,'ARB_NT','ARB_NT/INFO');
BIO::remote_action($gb_main,'ARB_NT','spec_reorder_fields');
BIO::remote_awar($gb_main,'ARB_NT','tmp/ad_reorder/source','full_name');
BIO::remote_awar($gb_main,'ARB_NT','tmp/ad_reorder/dest','acc');

# sleep(3); # delaying doesn't help

BIO::remote_action($gb_main,'ARB_NT','REORDER_FIELDS/MOVE_RIGHT_BEHIND_LEFT');
# recording stopped @ Tue Jun 17 11:43:56 2014
ARB::close($gb_main);
