This is the bits which you will need to get started...
A connection to the EPrints system is represented by an instance of EPrints::Session. The session object links to
- the configuration of the repository (only one per session object, even if the system itself has multiple repositories).
- the database for the repository.
- the language to output in.
And if a CGI script then also
- the EPrints::DataObj::User object of the current user, if any.
- the apache request.
If you're writing your own script then you'll need to start by asking for a Session object.
#!/usr/bin/perl -w -I/opt/eprints3/perl-lib/
my $archive_id = $ARGV; my $session = new EPrints::Session( 1 ); exit( 1 ) unless( defined $session ); # do your stuff