10-22-2008
What is the script doing that is wrong? Other than not remembering where it left off looking in the log file?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi Guys,
the requirement is like this,
i am having a error log file in this format,
4594.493: parallel nursery GC 2594592K->2544691K (2969600K), 30.848 ms
4605.958: parallel nursery GC 2634887K->2584986K (2969600K), 38.900 ms
4619.079: parallel nursery GC 2822555K->2774812K... (12 Replies)
Discussion started by: gsprasanna
12 Replies
2. Shell Programming and Scripting
Hello,
I have a Apache webserver running on RedHat. Its primary function is a proxy server for users accessing the internet. I have a transaction log that logs every transactions of every users. For users trying to access certain sites/content the transactions goes into a 302 redirect loop and... (2 Replies)
Discussion started by: bruno406
2 Replies
3. Shell Programming and Scripting
Shell script to find the run time based on log entries?
Below is the log files content updated when the script test.sh runs. I would like to calculte the difference between first update time stamp and last update time stamp to find the run time of the script. The below log file shows the first... (1 Reply)
Discussion started by: mailtopranesh
1 Replies
4. Shell Programming and Scripting
My Script . This check log file size every 1 minute.
#! /bin/bash
logFiles="log1.log log2.log"
logLocation="/usr/home/test/log/"
sleepTime=60
failMessage=":: Log not running :: Pls Check Service"
successMessage="OK"
arr=($logFiles)
arrlen=${#arr}
arrcount=()
date
for... (0 Replies)
Discussion started by: ooilinlove
0 Replies
5. Shell Programming and Scripting
:p Hello :)
This is my script . This check log file size every 1 minute.
Credit code https://www.unix.com/shell-programming-scripting/151723-help-writing-script-check-log-not-update.html
#! /bin/bash
logFiles="log1.log log2.log"
logLocation="/usr/home/test/log/"
sleepTime=60
... (8 Replies)
Discussion started by: ooilinlove
8 Replies
6. Shell Programming and Scripting
Hi,
as the title says, I am after a simple script, which will open the Alert log from
an 11.2.0.1 Linux environment and mail the error message and description to a recipient email address.
I can then schedule this job via cron and let it run every 15 minutes.
I have searched online... (16 Replies)
Discussion started by: jnrpeardba
16 Replies
7. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Show all users who are currently logged in, sorted from earliest to latest log in time. The log in time includes the month, day, and time.
2. Relevant commands, code, scripts, algorithms:
finger, who, sort, pipe, head, tail,
... (8 Replies)
Discussion started by: vtmd
8 Replies
8. Shell Programming and Scripting
Hi ,
We have around 22 logs , each has different entries. I have to automate this using shell script. The ideas which am sharing is given below
1) We use only TAIL -100 <location and name of the log> Command to check the logs.
2) We want to check whether the log was updated before 24... (13 Replies)
Discussion started by: Kalaihari
13 Replies
9. Shell Programming and Scripting
Please provide Shell script to capture ORA errors from Alert Log for a given date or Current date.
-Veera (1 Reply)
Discussion started by: Veera_V
1 Replies
10. Web Development
Here is the JS I wrote and am now testing live for alerting a member when they have received a new badge (seems to be working OK so far, still testing live):
var badgeChange = readCookie("badgestatechange");
$(function() {
if (badgeChange == "1") {
if (vbuserId > 0) {
var... (0 Replies)
Discussion started by: Neo
0 Replies
LEARN ABOUT DEBIAN
dpkg::log::analyse
DPKG::Log::Analyse(3pm) User Contributed Perl Documentation DPKG::Log::Analyse(3pm)
NAME
DPKG::Log::Analyse - Analyse a dpkg log
VERSION
version 1.20
SYNOPSIS
use DPKG::Log;
my $analyser = DPKG::Log::Analyse->new('filename' => 'dpkg.log'); $analyser->analyse;
DESCRIPTION
This module is used to analyse a dpkg log.
METHODS
$analser = DPKG::Log::Analyse->new('filename' => 'dpkg.log')
$analyser = DPKG::Log::Analyse->new('log_handle' => $dpkg_log)
Returns a new DPKG::Log::Analyse object. Filename parameter can be omitted, it defaults to /var/log/dpkg.log.
Its possible to specify an existing DPKG::Log object instead of a filename. This will be used and overrides any filename setting.
$analyser->analyse;
Analyse the debian package log.
$analyser->newly_installed_packages
Return all packages which were newly installed in the dpkg.log.
$analyser->upgraded_packages
Return all packages which were upgraded in the dpkg.log.
$analyser->removed_packages
Return all packages which were removed in the dpkg.log.
$analyser->unpacked_packages
Return all packages which are left in state 'unpacked'.
$analyser->halfinstalled_packages
Return all packages which are left in state 'half-installed'.
$analyser->halfconfigured_packages
Return all packages which are left in state 'half-configured'.
$analyser->installed_and_removed_packages
Return all packages which got installed and removed.
SEE ALSO
DPKG::Log, DPKG::Log::Analyse::Package
AUTHOR
Patrick Schoenfeld <schoenfeld@debian.org>.
COPYRIGHT AND LICENSE
Copyright (C) 2011 Patrick Schoenfeld <schoenfeld@debian.org>
This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.
perl v5.10.1 2011-02-26 DPKG::Log::Analyse(3pm)