afickonfig - a tool to manage Afick's config files


NAME

afickonfig - a tool to manage Afick's config files


DESCRIPTION

afickonfig is to change parameters in afick's config file, in a batch way. It can add, replace, remove any components (macro, alias, directives, rules) It was designed to work with same options names as afick (directives).

Note : in the current version, it can checks some arguments syntax before applying,

The idea came from the ``postconf'' utility from postfix.


SYNOPSIS

afickonfig.pl [options] [action] [macros] [alias] [directives] [rules]

afick use posix syntax, which allow many possibilities :


OPTIONS

options are used to control afickconfig


ACTIONS

actions are used to change afick's configuration


MACROS

macros are to be set in afick configuration format (see afick.conf(5)) : '@@define macro value'


ALIAS

aliases are to be set in afick configuration format (see afick.conf(5)) : 'newrule = attributes'


DIRECTIVES

directives are to be set in afick configuration format (see afick.conf(5)) : 'directive := value'


RULES

rules are to be set in afick configuration format (see afick.conf(5)) : 'file alias'

you can also use


FILES

if no config file on command line, afick try to open /etc/afick.conf (Unix) or windows.conf (Windows) as default config

for config file syntax see afick.conf(5)


USE

afickonfig may


EXAMPLES

To use this program, you must just run it with same afick command line options :

afickonfig.pl -c afick.conf --timing --norunnig_files --debug=1 --archive=afick_archive

or the same in configuration file syntax :

afickonfig.pl -c afick.conf 'timing := 1' ' running_files := no' 'debug:=1 'archive:=afick_archive'

and a mix of all types

afickonfig.pl -c afick.conf --timing 'debug:=1' '@@define BATCH 0' 'newrule = p+u+g' '/tmp newrule'

remove lines

afickonfig -c afick.conf 'debug:=' '@@define BATCH' 'newrule=' '/tmp'


RETURN VALUES

The exit status is the number of real changes


NOTES

this program only use perl and its standard modules.


SEE ALSO

afick.conf(5) for the configuration file syntax
afick-tk(1) for the graphical interface
afick(1) for the command-line interface
afick_archive(1) for a tool to manage archive's reports


COPYRIGHT

Copyright (c) 2002,2003,2004 Eric Gerbier All rights reserved.

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.


AUTHORS

Eric Gerbier

you can report any bug or suggest to gerbier@users.sourceforge.net

 afickonfig - a tool to manage Afick's config files