Query: amgetconf
OS: redhat
Section: 8
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
AMGETCONF(8) System Manager's Manual AMGETCONF(8)NAMEamgetconf - look up amanda.conf variablesSYNOPSISamgetconf [ config ] parameterDESCRIPTIONAmgetconf looks up parameters in amanda.conf, the Amanda configuration file, or from the build and runtime environment, and returns their corresponding value. If config is not specified, amgetconf assumes it is being run from the configuration directory and that amanda.conf is present. If parameter begins with build., the (case insensitive) string following the period is a build environment variable. Variables without a value (e.g. XFSDUMP on a system that does not support that type of file system) will not report an error and will return an empty string as the value. Flag variables (e.g. USE_AMANDAHOSTS) will return 1 if the flag is set or an empty string if it is not. If parameter begins with dbopen., the string following the period is a program name and an Amanda debug file will be created for the call- er. The name of the file is returned. If parameter begins with dbclose., the string following the period is a program name previously used with dbopen., followed by a colon (:) and the previously opened file name. See the amanda(8) man page for more details about Amanda.EXAMPLEFind out the path to the log file directory: % amgetconf DailySet1 logdir /etc/amanda/DailySet1 Find out the current tape type: % amgetconf DailySet1 tapetype DLT4000-IV Find out the default configuration directory: % amgetconf DailySet1 build.CONFIG_DIR /etc/amanda Create, use and close a debug file in a script: % set debug_file = `amgetconf DailySet1 dbopen.myscript` % echo debug information >> $debug_file % amgetconf DailySet1 dbclose.myscript:$debug_fileMESSAGESamgetconf: no such parameter "param" Parameter param is not a known keyword (e.g. not a valid amanda.conf keyword). In this case, amgetconf will write "BUGGY" to stdout as the value.SEE ALSOamanda(8) AMGETCONF(8)
Related Man Pages |
---|
amlabel(8) - redhat |
amreport(1) - redhat |
amaddclient(8) - debian |
amgetconf(8) - debian |
amtoc(8) - debian |
Similar Topics in the Unix Linux Community |
---|
any explanation for thsi shell script behaviour |
divert output |
executing script |
using variables |
forking question myscript vs . myscript vs exec myscript |