Sponsored Content
Top Forums Shell Programming and Scripting script for taking the stats from a file Post 302296781 by archana234 on Wednesday 11th of March 2009 08:40:34 PM
Old 03-11-2009
thanks you testS and where do i put the log file in there.
-rw-r--r-- 1 ins users 203905773 Dec 15 00:00 08121400010202.TLG
-rw-r--r-- 1 ins users 236227823 Dec 16 00:00 08121500010202.TLG
-rw-r--r-- 1 ins users 243940118 Dec 17 00:00 08121600010202.TLG
-rw-r--r-- 1 ins users 237871341 Dec 18 00:00 08121700010202.TLG
-rw-r--r-- 1 ins users 250888222 Dec 19 00:00 08121800010202.TLG
-rw-r--r-- 1 ins users 224493872 Dec 20 00:00 08121900010202.TLG
-rw-r--r-- 1 ins users 218388629 Dec 21 00:00 08122000010202.TLG
-rw-r--r-- 1 ins users 186587338 Dec 22 00:00 08122100010202.TLG
-rw-r--r-- 1 ins users 212704014 Dec 23 00:00 08122200010202.TLG
-rw-r--r-- 1 ins users 223440201 Dec 24 00:00 08122300010202.TLG
-rw-r--r-- 1 ins users 205148228 Dec 25 00:00 08122400010202.TLG
-rw-r--r-- 1 ins users 190723897 Dec 26 00:00 08122500010202.TLG
-rw-r--r-- 1 ins users 196810206 Dec 27 00:00 08122600010202.TLG
-rw-r--r-- 1 ins users 207268885 Dec 28 00:00 08122700010202.TLG
-rw-r--r-- 1 ins users 192394546 Dec 29 00:00 08122800010202.TLG
-rw-r--r-- 1 ins users 213904424 Dec 30 00:00 08122900010202.TLG
-rw-r--r-- 1 ins users 227873419 Dec 31 00:00 08123000010202.TLG
-rw-r--r-- 1 ins users 261625589 Jan 1 00:00 08123100010202.TLG
-rw-r--r-- 1 ins users 930495 Feb 10 10:00 sqlnet.log
-rw-r--r-- 1 ins users 195611078 Feb 11 00:00 09021000010202.TLG
-rw-r--r-- 1 ins users 183961342 Feb 12 00:00 09021100010202.TLG
-rw-r--r-- 1 ins users 195541787 Feb 13 00:00 09021200010202.TLG
-rw-r--r-- 1 ins users 188403819 Feb 14 00:00 09021300010202.TLG
-rw-r--r-- 1 ins users 180083539 Feb 15 00:00 09021400010202.TLG
-rw-r--r-- 1 ins users 174935554 Feb 16 00:00 09021500010202.TLG
-rw-r--r-- 1 ins users 184086392 Feb 17 00:00 09021600010202.TLG
-rw-r--r-- 1 ins users 183132340 Feb 18 00:00 09021700010202.TLG
-rw-r--r-- 1 ins users 204216062 Feb 19 00:00 09021800010202.TLG
-rw-r--r-- 1 ins users 197424799 Feb 20 00:00 09021900010202.TLG
-rw-r--r-- 1 ins users 194341059 Feb 21 00:00 09022000010202.TLG
-rw-r--r-- 1 ins users 184951088 Feb 22 00:00 09022100010202.TLG
-rw-r--r-- 1 ins users 163008982 Feb 23 00:00 09022200010202.TLG
-rw-r--r-- 1 ins users 187907245 Feb 24 00:00 09022300010202.TLG
-rw-r--r-- 1 ins users 210837242 Feb 25 00:00 09022400010202.TLG
-rw-r--r-- 1 ins users 186564560 Feb 26 00:00 09022500010202.TLG
-rw-r--r-- 1 ins users 214959454 Feb 27 00:00 09022600010202.TLG
-rw-r--r-- 1 ins users 209203339 Feb 28 00:00 09022700010202.TLG
-rw-r--r-- 1 ins users 201840157 Mar 1 00:00 09022800010202.TLG
-rw-r--r-- 1 ins users 173722179 Mar 2 00:00 09030100010202.TLG
-rw-r--r-- 1 ins users 221884036 Mar 3 00:00 09030200010202.TLG
-rw-r--r-- 1 ins users 210510974 Mar 4 00:00 09030300010202.TLG

thank u all for helping me out once again as i am not very good at NR and FNR which something very new to me.please bear with me and help me out.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. Shell Programming and Scripting

script to update the stats

Hi, I am using the below shell script to update the webalizer stats: #!/bin/bash username='elogic1' domain='abcd.com' path_to_webalizer='/hsphere/shared/bin/webalizer' path_to_logs='/hsphere/local/home/elogic1/logs/abcd.com'... (4 Replies)
Discussion started by: gsiva
4 Replies

4. Shell Programming and Scripting

Perl script for taking inputs from one script and storing them into a document.

Hi. I wanted to create a Perl script which can take the outputs of a Perl script as it's input and temporarily store them in a document. Need help. Thanks.:) (8 Replies)
Discussion started by: xtatic
8 Replies

5. Shell Programming and Scripting

Shell Script to execute Oracle query taking input from a file to form query

Hi, I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database. For instance: USER CITY --------- ---------- A CITY_A B CITY_B C ... (2 Replies)
Discussion started by: DevendraG
2 Replies

6. Shell Programming and Scripting

How to ftp multiple files by taking the file name from a input file.

Hi, I'm working on a script which has to copy multiple files from one server to another server. The list of files that are to be copied is present in a file say input.txt. vi input.txt abc.c welcome.c new.c welcome1.c for ftp'ing a single file say 'new.c' the following code... (2 Replies)
Discussion started by: i.srini89
2 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

Script taking more time in CRONTAB

Hello All, I have created a shell script, When i run it manually as ./<script_name> it takes 5 hours to run, but when i am scheduling it in crontab, it is taking 20 hours to run. Please help me and advice, what can be done to reduce the time in crontab. Thank you (6 Replies)
Discussion started by: anand2308
6 Replies

9. Shell Programming and Scripting

Taking error message from XML file, amending to script

Hello all, I have a question about creating a script that will look for messages on one of our MQ series systems, and fix them. Currently, if we issue a command for example Command.sh errors it gives us: ID:c3e2d840d4f3f3d74040404040404040cb2ef4e62f70f702 <?xml version="1.0"... (3 Replies)
Discussion started by: jeffs42885
3 Replies

10. 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
SIEVESHELL(1)						User Contributed Perl Documentation					     SIEVESHELL(1)

NAME
sieveshell - remotely manipulate sieve scripts SYNOPSIS
sieveshell [--user=user] [--authname=authname] [--realm=realm] [--exec=script] server[:port] sieveshell --help DESCRIPTION
sieveshell allows users to manipulate their scripts on a remote server. It works via MANAGESIEVE, a work in progress. The following commands are recognized: list list scripts on server. put <filename> upload script to server. get <name> [<filename>] get script. if no filename display to stdout delete <name> delete script. activate <name> activate script. deactivate deactivate all scripts. OPTIONS
-u user, --user=user The authorization name to request; by default, derived from the authentication credentials. -a authname, --authname=authname The user to use for authentication (defaults to current user). -r realm, --realm=realm The realm to attempt authentication in. -e script, --exec=script Instead of working interactively, run commands from script, and exit when done. REFERENCES
[MANAGESIEVE] Martin, T.; "A Protocol for Remotely Managing Sieve Scripts", draft-ietf-managesieve-03.txt, Mirapoint, Inc.; May 2001, work in progress. AUTHOR
Tim Martin <tmartin@mirapoint.com>, and the rest of the Cyrus team <cyrus-bugs@andrew.cmu.edu>. perl v5.10.0 2008-04-04 SIEVESHELL(1)
All times are GMT -4. The time now is 10:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy