This would be very basic question to most of you, but for me as a newbie it is an un-know.
I would like to load a configuration file into memory before executing a specific command. For example: I have a config file that holds all the database connectivity information and I'd like to load this specific db config file in order to execute a command:
config file will have:
I need the values correctly read from the config file that I will load before executing the above command.
Help is much appreciated.
im kind alost. i beleave its a sed command. but i cant seem to find it in my book. can someone point me in the write direction.
i know this is extreamly sloppy. but this is what i did untill i can figure out how to manipulate the filename namespace.
an ls on the directory where this would run... (2 Replies)
hi all
need your help.
I am wrting a script that will load data into the table.
then on another load will append the data into the existing table.
Regards
Ankit (1 Reply)
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)
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)
Hi All,
I am working on nawk script, has the small function which prints the output on the screen.Am trying to print/append the same output in a file.
Basically nawk script should print the output on the console/screen and as well it should write/append the same result to a file.
script :... (3 Replies)
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)
Hello, on my hostserver i see one VPS of mine got load of 200.00 and netstat nothing (not a single blank line on netstat command) after some time, netstat started showing connections, but i see no excessive IP connections.
tail -f /var/log/httpd/access_log shows no activity
/var/log/messages ;... (1 Reply)
Hi, i want to add a line at the beginning of every file in a directory.
perl -i.bkp -p -e 'print "#include /verif/pdd1/exu/sxs/6sTest/reset/dfu/top_level.reset\n" if $. == 1' *.reset
But this command is updating only the first file in the directory. I think this is because $. is not resetting... (3 Replies)
Discussion started by: twistedpair
3 Replies
LEARN ABOUT OSF1
config
config(8) System Manager's Manual config(8)NAME
config - Builds system configuration files
SYNOPSIS
/sys/conf/config [-k] [-p] [-q] system_name
FLAGS
Creates a define variable 'KDEBUG' that can be used to conditionally compile source code for kernel debugging. Configure the system for
profiling. You must have sources to use this flag. Concatenates and displays all the system configuration files, including any configura-
tion files described in the /sys/conf/NAME.list file.
DESCRIPTION
The doconfig command calls the config command to build a set of system configuration files from a file that describes the sort of system
that is being configured. The config command also takes as input another file that tells it what files are needed to generate a system.
This other file can be augmented by a configuration-specific set of files that name alternate files for a specific machine.
Normally, you should run the doconfig program and not the config command. If you need to issue the config command, be sure to change your
directory to the /sys/conf directory. As an argument to the config command, specify the name of a system configuration file containing
device specifications, configuration options and other system parameters for that specific system configuration. The config command places
all its output files in the directory
The output of config consists of a number of files; each machine type has its own specific set of files. All machine types have a makefile
which is used by make during the system build. Typically, there are also a set of header files which contain definitions of the number of
various devices that will be compiled into the system, and a set of swap configuration files contain definitions for the disk areas to be
used for swapping, the root file system, argument processing, and system dumps.
After running config, you run make depend in the directory where the new makefile was created.
If any other error messages are produced by config, the problems in the configuration file should be corrected and config should be run
again. Attempts to compile a system that had configuration errors are likely to be unsuccessful.
NOTES
The line numbers reported in error messages are usually off by one.
FILES
List of common files used to build the system List of files specific to NAME, where NAME is the value specified for the ident option in the
system configuration file Machine-independent portion of the makefile template used for building kernels from binaries Machine-independent
portion of the makefile template used for building kernels from sources Machine-dependent portion of the makefile template List of machine-
specific files Machine-specific name to major device mapping file
RELATED INFORMATION
Commands: make(1), doconfig(8)
System Administration delim off
config(8)