02-24-2009
Config Generation
I'm looking for good ways to handle config generation. I have been rolling my own for a few years now, but I'm wondering if there is a better way and would like to get some advice from anyone who has any ideas or experience in doing this. Here are some things I want to achieve in generating separate config files per host/service: 1. Common options shared across all configs and changed from a single place 2. Host/service specific options 3. Replace generic options with host/service specific ones 4. Some generic options may be set as non override-able Daemon features are welcome although I'm primarily looking at a daemon independent way of creating unix config files...
10 More Discussions You Might Find Interesting
1. Programming
Hi,
I was just learning about buffer overflow attacks... I was curious as to how to generate a simple shellcode. I've written two codes - One is the typical program that has a vulnerability inside and the other is the shellcode.
main program:
void test();
int main() {
test();
... (2 Replies)
Discussion started by: Legend986
2 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I got a requirement in writing a sheel script in unix, please help me out
the requirement is there are two folders Folder1 and Folder2 and there are same files in the different folders. like file1,file2 in folder1 and file1 and file2 in folder2.
I would like to compare all the... (2 Replies)
Discussion started by: gmahesh2k
2 Replies
3. Shell Programming and Scripting
Hello,
I got a requirement in writing a KSH script in unix, please help me out
the requirement is there are two folders Folder1 and Folder2 and there are same files in the different folders. like file1,file2 in folder1 and file1 and file2 in folder2.
I would like to compare all the similar... (3 Replies)
Discussion started by: gmahesh2k
3 Replies
4. Shell Programming and Scripting
How can I generate graphs using perl in unix solaris environment?
Please suggest. (2 Replies)
Discussion started by: wadhwa.pooja
2 Replies
5. Shell Programming and Scripting
i have an xml tag. The value for the tag should be iterated through out the xml document.
eg:
<data><id><id><name>a</name><addr>aaa</addr><phnumb>3456</phnumb><state>ca</state><city>ny</city></data>... (6 Replies)
Discussion started by: Sgiri1
6 Replies
6. Shell Programming and Scripting
Hi,
I want to use a config file as the base file and parse over the values of country and city parameters in the config file and generate separate config files as explained below.
I will be using the config file as mentioned below:
(config.txt)
country:a,b
city:1,2
type:b1... (1 Reply)
Discussion started by: clazzic
1 Replies
7. Shell Programming and Scripting
Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated.
script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made.
OS :Susi linux ver 10.3.
... (4 Replies)
Discussion started by: muraliinfy04
4 Replies
8. Shell Programming and Scripting
I need a (bash) script to echo to the screen all possible 4 character hex combinations of: A-F, 0-9. I beleive there are 65,535 approx combos. Output something like this:
0001
0002
0003
0004
0005
0006
0007
0008
0009
000A
...
...
FFFE
FFFF (6 Replies)
Discussion started by: ajp7701
6 Replies
9. Red Hat
Hi folks,
I am trying to configure Apache webserver and also a virtual host inside this webserver.
For Global server config: /var/www/html/index.html
For virtual host config: /var/www/virtual/index.html
Both client10 & www10 are pointing to 192.168.122.10 IP address.
BUT, MY... (1 Reply)
Discussion started by: freebird8z
1 Replies
10. Windows & DOS: Issues & Discussions
Hi Team,
My new build configuration always looking for the files from the build where i copied from.
please help me to resolve this.
I am using Visual studio 2008.It has Qt 4.8. plugins,qml,C++ development
I created new debug_new build configuration with additional preprocessor from the... (1 Reply)
Discussion started by: SA_Palani
1 Replies
LEARN ABOUT DEBIAN
config::gitlike::git
Config::GitLike::Git(3pm) User Contributed Perl Documentation Config::GitLike::Git(3pm)
NAME
Config::GitLike::Git - load Git configuration files
SYNOPSIS
use Config::GitLike::Git;
my $config = Config::GitLike::Git->new;
$config->load("/path/to/repo");
DESCRIPTION
This is a modification of Config::GitLike to look at the same locations that Git writes to. Unlike with Config::GitLike, you do not need to
pass a confname to its constructor. This module also enables the Config::GitLike option to maintain git compatibility when reading and
writing variables.
"load" in Config::GitLike should be passed path to the top level of a git repository -- this defaults to the current directory. It will
append ".git" as necessary. It supports both bare and non-bare repositories.
METHODS
This module overrides these methods from "Config::GitLike":
dir_file
The per-directory configuration file is .git/config
user_file
The per-user configuration file is ~/.gitconfig
global_file
The per-host configuration file is /etc/gitconfig
is_git_dir
Returns true if a file contains the necessary files (as git would reckon it) for the path to be a git repository.
load_dirs
Loads the relevant .git/config file.
SEE ALSO
Config::GitLike
LICENSE
You may modify and/or redistribute this software under the same terms as Perl 5.8.8.
COPYRIGHT
Copyright 2010 Best Practical Solutions, LLC
AUTHORS
Alex Vandiver <alexmv@bestpractical.com>, Christine Spang <spang@bestpractical.com>
perl v5.14.2 2012-02-16 Config::GitLike::Git(3pm)