Sman::Config - Find and read config files for the Sman tool


Sman documentation  | view source Contained in the Sman distribution.

Index


NAME

Top

Sman::Config - Find and read config files for the Sman tool

SYNOPSIS

Top

  # this module is intended for internal use by sman and sman-update
  my $smanconfig = new Sman::Config();
  my @conffiles = $smanconfig->FindConfigFiles();
  # or
  my $fileread = $smanconfig->ReadDefaultConfigFile();

  my $indexfile = $smanconfig->GetConfigData("SWISHE_IndexFile");

DESCRIPTION

Top

Find and read Sman configuration files.

The 'default config file' is the first file called 'sman.conf' in the directory with the invoking perl script, $ENV{HOME}, /usr/local/etc, or /etc. If no file name sman.conf is is found in any of those directories, the first file called 'sman-defaults.conf' in the same list of directories is used.

AUTHOR

Top

Josh Rabinowitz <joshr>

SEE ALSO

Top

sman.conf, sman-update, sman


Sman documentation  | view source Contained in the Sman distribution.