I have to write a script in which i have to read data from a configuration ( .cfg) file. And also i have to execute/call some already written scripts from this script.
How you read the data depends on how the .cfg file is written. I use .cfg files written as shell scripts which I just source, e.g.:
If the file is not a valid shell script, you will have to read it line by line:
i have done a coding in shell scripting which reads a file line by line and does something....it takes more than 30 seconds to execute for a single file. when i do the same with perl scripting it takes less than a second.
is that shell scripting is not efficient while working with large number of... (1 Reply)
i create ks.cfg for automatic install for centos 5.2 it's work perfectky for cutom install linux package.
and i want to install another program with shell scripts (assume test.tar include in DVD linux custom package)** single dvd include linux os and test.tar
sample
#!/bin/bash... (1 Reply)
We are using sybase data base and we have the data base name called MasterDB. The data baase MasterDB contains 100's of tables like sample1, sample2, sample3...etc...sample100
To take the count of every table we have to execute the following commands
use MasterDB //DB name
go //execute... (1 Reply)
We are using sybase data base and we have the data base name called MasterDB. The data baase MasterDB contains 100's of tables like sample1, sample2, sample3...etc...sample100
To take the count of every table we have to execute the following commands
use MasterDB //DB name
go //execute... (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 Friends,
I would like to read all the record from one txt file to other file txt
For example I have two txt file a.txt and b.txt. I need to read a.txt record by record and I need add the system date @ end of each record before moving it to b.txt. Could you please share the coding for... (4 Replies)
(copied directly from my other thread about something else)
At the moment, I just use...
cat config_file|grep var_name|cut -d'=' -f2
... which is fine for what I've been doing, but I'm not sure what to
do when there are a variable number of entries and I want it go through
them like a... (7 Replies)
How to read multiple files at simultaneously? (1 Reply)
Discussion started by: Priyanka_M
1 Replies
LEARN ABOUT OPENSOLARIS
ser.cfg
ser.cfg(5) Sip Express Router ser.cfg(5)NAME
ser.cfg - ser configuration file
SYNOPSIS
/etc/sfw/ser/ser.cfg
DESCRIPTION
ser reads the configuration data from /etc/sfw/ser/ser.cfg (or the file specified with -f on the command line). The file contains global
configuration parameters, module loading commands and the script that will be executed for each received request. Lines starting with # or
enclosed in /* ... */ are interpreted as comments.
This manual page is incomplete. For further information please read the Ser User Guide (http://www.iptel.org/ser/admin.html).
FILES
/etc/sfw/ser/ser.cfg
AUTHORS
Andrei Pelinescu - Onciul, <pelinescu-onciul@fokus.gmd.de>
Bogdan Andrei Iancu
Daniel-Constantin Mierla
Jan Janak
Jiri Kuthan
Juha Heinanen
Maxim Sobolev
Miklos Tirpak
Nils Ohlmeier
Ramona-Elena Modroiu
Raphael Coeffic
Ricardo Baratto
Stelios Sidiroglou-Douskos
SEE ALSO ser(8)
Full documentation on ser, including configuration guidelines, FAQs and licensing conditions, is available at http://www.iptel.org/ser/.
For reporting bugs see http://www.iptel.org/ser/bugs/.
Mailing lists:
serusers@iptel.org - ser user community
serdev@iptel.org - ser development, new features and unstable version
For help/support, write an email to <serhelp@iptel.org>.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+--------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+--------------------+
|Availability | SUNWserr, SUNWseru |
+--------------------+--------------------+
|Interface Stability | External |
+--------------------+--------------------+
NOTES
Source for ser is available on http://opensolaris.org.
ser 15.07.2002 ser.cfg(5)