08-09-2012
write one script to check your predefined errors...
it won't take much efforts....
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I ned to monitor the tomcat log file called "catalina.out" for "Out of memory" error.
the script should monitor this file and send us the mail as soon as it finds the string "Out of memory" in the file.
can ypu suggest me which is the best way to do this? (4 Replies)
Discussion started by: shivanete
4 Replies
2. Shell Programming and Scripting
Hello Forum,
I have prepared script to monitor the tomcat status. Following is the script which will monitor tomcat instance.I need little modifcation in the script. My script will grep for java,the output of grep command will analyze by if condition under for loop and will
send following echo... (7 Replies)
Discussion started by: coolguyamy
7 Replies
3. Shell Programming and Scripting
hi Gurus,
Need to pick your brains on this minor script project.
I would like to continuously monitor a log file with sample log messages as below, and if PSOldGen percentage is either 99% or 100% for consecutively 10 times, alert someone.
{Heap before gc invocations=46516:
PSYoungGen ... (6 Replies)
Discussion started by: kenchen722
6 Replies
4. Shell Programming and Scripting
Hi,
I was asked to write a new logrotate file for tomcat logs..in which one
of the requirement is to have date and time appended at the end of
the file name.
I have tried dateext and dateformat-%Y-%m-%d-%s but these directives
didn't have the option for HH:MM.
I am very new to this... (2 Replies)
Discussion started by: sdspawankumar
2 Replies
5. Solaris
Hi,
We have upgrade tomcat from 5.0.20 to 7.0.33 and made changes to server.xml file according to newer version.. how ever the upgrade went fine and now i am unable to deploy application remotely.. it is giving 403 access denied error.. we have seperate appbase directory mentioned in server.xml..... (0 Replies)
Discussion started by: phani4u
0 Replies
6. Shell Programming and Scripting
Hello Forum,
I have prepared script to monitor the tomcat status.
Following is the script which will monitor tomcat instance.
I need little modifcation in the script.
My script will grep for process,
the output of grep command will analyze by if condition under for loop and will send... (2 Replies)
Discussion started by: ooilinlove
2 Replies
7. Shell Programming and Scripting
Hi,
I need to get a script working to monitor a log file and throw an alert via mailx as soon as a particular error is encountered.
I do not want repeatative email notifications of same error so simply cat logfile and grepping the error would not work.
Here is what i planned but it seems... (2 Replies)
Discussion started by: roshan.171188
2 Replies
8. UNIX for Advanced & Expert Users
Hello,
I have been working on script which need to generate an alert based upon live logs. If string is found then an alert mail must triggered.
tail -n -0 -F works fine to redirect the each latest line from live logs file to grep a pattern for matching but it seems to be not working on... (7 Replies)
Discussion started by: ketanraut
7 Replies
9. UNIX for Beginners Questions & Answers
Hi,
Iam new to unix , plz help me to write below script.
I need to write a script for Monitoring log file when any error occurs it has to send a mail to specified users and it should be always pick latest error not the existing one and the script should be able to send mail all errors (more... (1 Reply)
Discussion started by: vij05
1 Replies
10. UNIX for Beginners Questions & Answers
Hi
I have written below log monitoring script to egrep multiple words and redirect the output to a text file and its working fine but I want to add some more below given functionality to it, which is very advance and im not very good in it, so please help if you can :)
I am egrepping all the... (1 Reply)
Discussion started by: scazed
1 Replies
LEARN ABOUT DEBIAN
lambda
lambda(3tcl) Utility commands for anonymous procedures lambda(3tcl)
__________________________________________________________________________________________________________________________________________________
NAME
lambda - Utility commands for anonymous procedures
SYNOPSIS
package require Tcl 8.5
package require lambda ?1?
::lambda arguments body ?arg...?
::lambda@ namespace arguments body ?arg...?
_________________________________________________________________
DESCRIPTION
This package provides two convenience commands to make the writing of anonymous procedures, i.e. lambdas more proc-like. Instead of, for
example, to write
set f {::apply {{x} {
....
}}}
with its deep nesting of braces, or
set f [list ::apply {{x y} {
....
}} $value_for_x]
with a list command to insert some of the arguments of a partial application, just write
set f [lambda {x} {
....
}]
and
set f [lambda {x y} {
....
} $value_for_x]
COMMANDS
::lambda arguments body ?arg...?
The command constructs an anonymous procedure from the list of arguments, body script and (optional) predefined argument values and
returns a command prefix representing this anonymous procedure.
When invoked the body is run in a new procedure scope just underneath the global scope, with the arguments set to the values sup-
plied at both construction and invokation time.
::lambda@ namespace arguments body ?arg...?
The command constructs an anonymous procedure from the namespace name, list of arguments, body script and (optional) predefined
argument values and returns a command prefix representing this anonymous procedure.
When invoked the body is run in a new procedure scope in the namespace, with the arguments set to the values supplied at both con-
struction and invokation time.
AUTHORS
Andreas Kupries
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category lambda
of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
SEE ALSO
apply(3tcl), proc(3tcl)
KEYWORDS
anonymous procedure, callback, command prefix, currying, lambda, partial application, proc
CATEGORY
Utility
COPYRIGHT
Copyright (c) 2011 Andreas Kupries, BSD licensed
lambda 1 lambda(3tcl)