man lr_check_superservice (Commandes) - map Lire service to Lire superservice

NAME

lr_check_superservice - map Lire service to Lire superservice

SYNOPSIS

lr_check_superservice service lr_check_superservice -l

DESCRIPTION

lr_check_superservice takes a Lire service as argument, and returns the superservice this service belongs to. In case the service is unknown, a userfriendly errormessage is given.

When called with the -l option, this script prints all supported superservices.

You might prefer the lr_log2report(1) --help options to list available superservices: this command creates a more human-friendly format of the list.

EXAMPLE

Call this script in shell scripts as

 LR_SERVICE="$1"

 LR_SUPERSERVICE=`lr_check_superservice "$LR_SERVICE" || true`
 if test -z "$LR_SUPERSERVICE"
 then
    echo >&2 "$tag err lr_check_superservice failed"
    exit 1
 fi

 # now go using $LR_SUPERSERVICE

SEE ALSO

VERSION

$Id: lr_check_superservice.in,v 1.9 2004/09/04 10:34:59 vanbaal Exp $

COPYRIGHT

Copyright (C) 2002-2003 Stichting LogReport Foundation LogReport@LogReport.org

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html or write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.

AUTHOR

Joost van Baal <joostvb@logreport.org>