1834934 Members
2722 Online
110071 Solutions
New Discussion

Re: config file

 
SOLVED
Go to solution
Ragni Singh
Super Advisor

config file

Hey everyone,

Can s {'file'}: the logfile name (from conf file)
# {'owner'}: the logfile owner (from conf file)
# {'group'}: the logfile group (from conf file)
# {'mode'}: the logfile permissions (from conf file)
# {'gen'}: number of generations to keep (from conf file)
# {'size'}: max size of logfile (from conf file)
# {'time'}: max age of logfile (from conf file)
# {'flags'}: any flags (from conf file)
# {'pidfile'}: file containing PID to kill -HUP (from conf file)
# {'line'}: entire line (from conf file)
# {'linenum'}: line number (in conf file)
# {'stat'}: reference to array containing results of stat(file)
# {'old'}: reference to array containing named of old log files
# @compress is a list of files that will need to be compressed

omeone please help me with this. I need to create a config file based on the following information. Please help me get started on how to create this config file. I will forever be greatful for this. Points will definitely be given.

3 REPLIES 3
Shannon Petry
Honored Contributor

Re: config file

You were not very specific on what you need. A config file for storing this info? or you you need to make a script which fills in the blanks in your config file?

If you give the end goal, I'll be happy to help you out.
Microsoft. When do you want a virus today?
Ragni Singh
Super Advisor

Re: config file

Thanks for your quck response. I have downloaded a perl script from lumberjack. This is a log rotating script. When I run lumberjack, it says to go get the information from the config file. So I need to create a cofig file and put all the appropriate info there so my lumberjack program can work. Here is the link of the perl script and the man page for it. Your hep will be greatly appreciated.

http://kludge.psc.edu/~ksulliva/netbsd/lumberjack.man.html
Klaus Crusius
Trusted Contributor
Solution

Re: config file

Hi,

a typical line of /etc/lumberjack.config could look like:


/var/adm/syslog/syslog.log root.root 644 5 250 24 Z /var/run/syslog.pid,1

The fields are separated by each one blank or tab. Unused fields at the end can be ommitted.
The meaning of the fields is documented in the man page you referred to.

Regards, Klaus
There is a live before death!