Comment 1 for bug 884398

Revision history for this message
Jason Stephenson (jstephenson) wrote :

A sample script to exercise the new functionality:

#!/usr/bin/perl

use OpenILS::Utils::Cronscript;

my $script = OpenILS::Utils::Cronscript->new();

my $login = {
             username => $ARGV[0],
             password => $ARGV[1],
             workstation => $ARGV[2]
            };

my $authtoken = $script->authenticate($login);

print($script->authtoken . "\n");
print($script->authtime . "\n");