Sponsored Content
Full Discussion: script to update the stats
Top Forums Shell Programming and Scripting script to update the stats Post 302366488 by Scrutinizer on Thursday 29th of October 2009 04:11:10 PM
Old 10-29-2009
I think you need to stuff a little bit more into the loop, like e.g.:

Code:
#!/bin/bash

username=elogic1
domains="abcd.com efgh.com ijkl.com"
path_to_webalizer=/hsphere/shared/bin/webalizer

for domain in $domains
do
  path_to_logs=/hsphere/local/home/elogic1/logs/$domain
  output_dir_statistics=$path_to_logs/webalizer
  log_file=$(ls $path_to_logs/$domain*|grep -v .gz)
  $path_to_webalizer -n $domain -o $output_dir_statistics $log_file
done

 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script: want to insert values in database when update script runs

Hi , I am new to linux and also also to shell scripting. I have one shell script which unpacks .tgz file and install software on machine. When this script runs I want to insert id,filename,description(which will be in readme file),log(which will be in log file) and name of unpacked folder... (1 Reply)
Discussion started by: ring
1 Replies

2. Shell Programming and Scripting

script to gather weblogic jvm heap size stats

Hello, has anyone written something that will monitor/gather weblogic heap info ? I need to gather size, high/low stats to a file that I can upload to a speadsheet thanks for your help! (2 Replies)
Discussion started by: galenw
2 Replies

3. AIX

system stats

I recieved this out put below soemhow. Unfortunatly I did not write down the command I used to get it. Can someone tell me what command I use to gather these stats? OS = AIX 5.3 64Bit System Model: IBM,7026-6H1 Machine Serial Number:... (2 Replies)
Discussion started by: rocker40
2 Replies

4. AIX

IO Stats

Aix 5.3 I am trying to view the IO stats. I do the sar 5 5 but that is the WIO and si different than the IO stats right? I am just blanking on this. I know there is a command that I used to run that brings up a whole bunch of live stats that run live such as mem and so on just can't rememeber... (4 Replies)
Discussion started by: rocker40
4 Replies

5. Shell Programming and Scripting

script for taking the stats from a file

i have file which contains data like this every day.i need to pull up a report for counting the 203's in that file for each subscriber id.there are around 200 subscriber id's. all ths Y's which i have written in the script are the subscriber id's.could some one give me an idea as to how do it in... (22 Replies)
Discussion started by: archana234
22 Replies

6. Shell Programming and Scripting

Newbie to perl - Help with stats script

Hi, this is my first post so here goes..... I need help... I am trying to write a script to produce some stats based on a number of searches in a log file. Now i know how to do this using multiple variables which are really just greps, but I want a more efficent way of doing this as my poor... (1 Reply)
Discussion started by: ARwebble
1 Replies

7. Shell Programming and Scripting

Script to load daily average I/O stats from a .ksh file into Oracle db

Hi can anyone help me with a script to load output of the .ksh file into an Oracle database. I have attached sample output of the information that i need to load to the database (2 Replies)
Discussion started by: LucyYani
2 Replies

8. Shell Programming and Scripting

Execute Oracle gather stats via shell script

Hi , I am trying to automate a gather stats in shell script #!/usr/bin/ksh export ORACLE_HOME=/orcl/app/oracle/product/11.2.0.1/db_1 export PATH="$PATH:$ORACLE_HOME/bin" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$ORACLE_HOME/lib32" export TNS_ADMIN=/opt/netprobe/config... (1 Reply)
Discussion started by: neil.k
1 Replies
MIXMASTER-UPDATE(1)						 mixmaster-update					       MIXMASTER-UPDATE(1)

NAME
mixmaster-update - Fetch new reliability stats and keyrings for mixmaster SYNOPSIS
mixmaster-update [--verbose] [--source=SOURCE] [--configfile=FILE] [--destination=DIRECTORY] mixmaster-update --list-sources mixmaster-update --help mixmaster-update --version DESCRIPTION
mixmaster-update is a simple yet configurable script that downloads latest remailer reliability statistics and keyrings for your mixmaster. As having uptodate reliability statistics is imperative if you want to make use of remailers it is recommended that you always update this data should it be older that twelve or twentyfour hours and you intent to use mixmaster. mixmaster-update has several built in stats sources. You can view the list of stats sources with the --list-sources parameter. If you want to make use of another stats source which is not listed in the output of --list-sources you can do so by setting the location of mlist and others in your configuration file. OPTIONS
--verbose Print verbose output to standard output. May be given more than once to increase verbosity. --source=SOURCE Use this built in stats source. --configfile=FILE Also parse the configuration file FILE. --destination=DIRECTORY Write output to DIRECTORY rather than the directory given in the config file or ~/.Mix/. --list-sources List available stats sources. --help Print a brief help message and exit successfully. --version Print a version information and exit successfully. FILES
/etc/mixmaster/update.conf ~/.Mix/update.conf MIXMASTER_UPDATE_CONF environment --configfile parameter These files are parsed in this order. Later definitions overwrite older ones. This config file defines proxy settings, where to write the results to and which stats source to use /etc/mixmaster/allpingers.txt ~/.Mix/allpingers.txt MIXMASTER_ALLPINGERS environment --allpingers parameter These files are parsed in this order. Later definitions overwrite older ones. The allpingers.txt is a list of all pingers. FILEFORMAT
The update.conf configuration file for mixmaster-update is simple. Lines with whitespace only are ignored as are lines that have the hash our pound ("#") sign as their first non whitespace character. Lines are always truncated at the first hash our pound ("#") sign. Lines are pairs of keys and values separated by a convenient amount of whitespace. The key is case insensitive. Allowed keys: source Use the builtin stats source with this name destination Write the downloaded data to this directory rather than ~/.Mix proxy Set proxies for different protocols. The value is split into two parts: protocol and proxy URL. They are separated by whitespace. Example: PROXY http http://proxy.example.com:8080/ PROXY ftp http://proxy.example.com:8080/ The format for allpingers.txt is simple too: [example] base = http://stats.example.net/ rlist = http://stats.example.net/rlist.txt mlist = http://stats.example.net/mlist.txt rlist2 = http://stats.example.net/rlist2.txt mlist2 = http://stats.example.net/mlist2.txt rlist_html = http://stats.example.net/rlist.html mlist_html = http://stats.example.net/mlist.html rlist2_html = http://stats.example.net/rlist2.html mlist2_html = http://stats.example.net/mlist2.html rchain_html = http://stats.example.net/mlist2.html pgpring = http://stats.example.net/pgp-all.asc pgpring_rsa = http://stats.example.net/pgp-rsa.asc mixring = http://stats.example.net/pubring.mix type2list = http://stats.example.net/type2.list The file may contain several such definitions. ENVIRONMENT
MIXMASTER_UPDATE_CONF MIXMASTER_ALLPINGERS See the FILES section abobe. HOME Your homedirectory. Used for finding your user configuration file. Also the default destination directory is $HOME/.Mix/ SEE ALSO
mixmaster(1) BUGS
Please report them to the Debian Bug Tracking System as described at "http://bugs.debian.org/" or use a tool like reportbug(1). AUTHOR
Peter Palfrader <peter@palfrader.org> $Revision: 459 $ 2013-02-08 MIXMASTER-UPDATE(1)
All times are GMT -4. The time now is 12:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy