10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
We are trying to execute below script for finding out the occurrence of a particular word in a log file Need suggestions to optimize the script.
Test.log size - Approx to 500 to 600 MB
$wc -l Test.log
16609852 Test.log
po_numbers - 11 to 12k po's to search
$more po_numbers
xxx1335... (10 Replies)
Discussion started by: KumarPiyush7225
10 Replies
2. Shell Programming and Scripting
AFILENAME=glow.sh
FILENAME="/${AFILENAME}"
WIDTHA=$(echo ${FILENAME} | wc -c)
NTIME=0
RESULTS=$(for eachletter in $(echo ${FILENAME} | fold -w 1)
do
WIDTHTIMES=$(awk "BEGIN{printf... (5 Replies)
Discussion started by: SkySmart
5 Replies
3. Shell Programming and Scripting
Hello All,
I have created a script which will show the errors from a log file in between a particular section.
v1=$(sed -n "/Main Report/,/Main Report End/p" input | grep -i 'Unable to find'
v2=$(sed -n "/Main Report/,/Main Report End/p" input | grep -i 'Unable to add'
if
then
echo... (5 Replies)
Discussion started by: Vikram_Tanwar12
5 Replies
4. Shell Programming and Scripting
Hi Gurus,
I have a clearcase script that i use to check in a single file at time on my clearcase server. the script is as follows
setmyview
settask 75098_MSI_TRILOGY_EIM
cd /vobs/Trilogy_R12/custom/msieim/12.0.0/sql/
cleartool co -nc .
ct mkelem -nc Filename_1.sql
cp... (3 Replies)
Discussion started by: r_t_1601
3 Replies
5. Shell Programming and Scripting
hi all,
i have written the following script that does this work:
1. copy large logs files from one server to another.
2. then unzip this files and extraxt from these large https logs only those fields that are neccesary.
3. then archive the extracted logs to new files.
BUT the problem is... (7 Replies)
Discussion started by: arrals_vl
7 Replies
6. Shell Programming and Scripting
Hi friends,
at last i finish my script to find the status of the URL , in this code i used all the status codes, because of this it take too much of length. with the help of wiki only i find all the status codes.
Status codes in HTTP
#!/bin/bash
timevar=`date +%d-%m-%Y_%H.%M.%S` #--... (6 Replies)
Discussion started by: anishkumarv
6 Replies
7. Shell Programming and Scripting
HI ,
I have a list1 which consists of data that i have to search and a list2 which has the files that need to be searched .So basically i am using list1 on list2 to see if list1 data is present if found replace it .I have written the code using foreach loop for each list .This is taking the... (1 Reply)
Discussion started by: madhul2002
1 Replies
8. Shell Programming and Scripting
Hi All,
The below script I run daily and it consumes 2 hours approx.
In this I am calling another script and executing the same twice.
Is the loop below the cause for the slow process?Is it possible to finetune the program so that it runs in a much faster way?
The first script:
#!/bin/ksh... (4 Replies)
Discussion started by: Sreejith_VK
4 Replies
9. UNIX for Advanced & Expert Users
Hi,
What is the best way to find the last installation time of an unix based systems?Please advise
Thanks
Nagarajan G (7 Replies)
Discussion started by: ennstate
7 Replies
10. BSD
Say for instance, I would like to reduce the delay/waiting time for the boot-time menu from 10 seconds to 5 seconds, how would I go about doing it?
From what I've been able to find, entering "autoboot 5" into the right file would take care of that for me, but the man pages are unclear as to... (1 Reply)
Discussion started by: DownSouthMoe
1 Replies
FAXSETUP(8) System Manager's Manual FAXSETUP(8)
NAME
faxsetup - setup a machine for use with HylaFAX
SYNOPSIS
/usr/sbin/faxsetup [ -client ] [ -server ] [ -with-VAR[=value] ]
DESCRIPTION
faxsetup is an interactive shell script that does the necessary setup work to configure a client or server machine for the HylaFAX soft-
ware. faxsetup must be run on every HylaFAX server machine before the software will function-if a HylaFAX server program or script is
invoked before faxsetup is run, the command will abort with a message that says to run faxsetup. faxsetup may optionally be run on a
HylaFAX client machine to verify the configuration of the software.
By default faxsetup checks a machine for use both as a HylaFAX client and server. Client-specific checks include:
o the installation of client programs and data,
o the installation of the Adobe Font Metric (AFM) information files used by the HylaFAX text formatting support.
Server-specific checks include:
o the installation of server programs and data,
o the existence of the UUCP lock file directory,
o the installation of the TIFF software tools,
o the configuration of the getty programs invoked for data and voice calls,
o the pathnames for various system programs used by server shell scripts,
o proper support for FIFO special files,
o proper installation of a POSTSCRIPT RIP,
o definition of a ``fax'' user,
o definitions for the ``hylafax'' and ``snpp'' services,
o startup of the HylaFAX server processes: faxq(8) and hfaxd(8),
o definition of a ``FaxMaster'' mail alias for reporting server problems.
For server machines faxsetup also creates two files that are required by the HylaFAX command scripts. One file contains master configura-
tion parameters and the other contains various definitions used by scripts such as faxaddmodem(8) that communicate with modems.
OPTIONS
-client Do client-specific consistency checks.
-server Do server-specific consistency checks.
-with-VAR[=value]
Override the default definition for the configuration parameter named VAR; optionally specifying a new value (if no value is
specified then ``yes'' is used). This option is especially useful to override the default settings for the POSTSCRIPT inter-
preter package to use (e.g. ``-with-PS=dps''), the spooling directory (``-with-DIR_SPOOL=/mumble''), the directory where the tool
applications of TIFF software distribution are located (``-with-TIFFBIN=/usr/freeware''), etc. A complete list of the possible
parameters can be found by looking at the contents of the faxsetup shell script; many of these configuration parameters are also
described in the online documentation
-help Print a help message and terminate.
-quiet Do not print verbose messages to the terminal.
-verbose Print informative messages to the terminal (default).
BUGS
faxsetup does not query a modem to find out its capabilities when invoking the faxmodem program to setup a server in a send-only configura-
tion; it may be necessary to run faxmodem manually.
FILES
/var/spool/hylafax/etc/setup.cache master configuration parameters
/var/spool/hylafax/etc/setup.modem modem-related configuration support
Consult hylafax-server(5) for a complete discussion of the structure and content of the spooling area.
SEE ALSO
hylafax-server(5), hylafax-config(5), faxq(8), faxgetty(8), faxmodem(8), faxconfig(8), faxsend(8)
August 26, 1996 FAXSETUP(8)