Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

geonetwork/util-samplescripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

geonetwork.sh - a rudimentary command-line client for geonetwork

USAGE

$ geonetwork.sh servicename [filename]

EXAMPLES

$ geonetwork.sh metadata.admin.index.rebuild $ geonetwork.sh user.login credentials.xml

When the filename is omitted, a GET request is executed; When the filename is given, its contents will be POSTed to the service name. The contents of the file are expected to be application/xml.

The service names are defined in geonetwork/WEB-INF/lib/config.xml (and in the include files named there).

The output of the request is the xml returned by the service, filtered to show only the part.

CONFIGURATION

The first few lines of the script should be edited to provide the correct url for the geonetwork server, and the username and password to use for the non-public services.

DEPENDENCIES

The script uses the GET and POST commands provided by the libwww-perl package (also known as LWP or perl-libwww-perl).

Also it uses the xpath command provided by the perl-xml-xpath package.

Both are available for most linux distributions.

AUTHOR

Pieter Verbaarschott [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages