Sponsored Content
Full Discussion: email Alert
Top Forums Shell Programming and Scripting email Alert Post 302139510 by fed.linuxgossip on Sunday 7th of October 2007 09:25:47 PM
Old 10-07-2007
Smilie ... ty.. I think I got lazy
 

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Email alert script

I need to code a script, which will run via cron, every 30 minutes. The script will read a file containing a date&time and number (which represents disk space). The file gets appended to every 30 minutes. Here's a sample of the file: CPU 1:04/25/02 1:00 am:1972554 CPU 1:04/25/02 1:30... (1 Reply)
Discussion started by: moon
1 Replies

2. Shell Programming and Scripting

Using top command to email if process is exceeding 25% and sending an email alert if so

This is my first time writing a script and Im having some trouble, Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage I tried grep Obviosly that hasnt worked, Any... (8 Replies)
Discussion started by: jay02
8 Replies

3. UNIX for Beginners Questions & Answers

Email Alert in UNIX

Hi There I have to wrote a script where I am able to echo a result of an SQL script, however I want to be able to send an email to myself when it is more than 0 (so whenever a value is returned) is this possible? I tried one way from looking on the web but this didn't work, I have added my... (8 Replies)
Discussion started by: simpsa27
8 Replies

4. Shell Programming and Scripting

Email alert after termination

I am running the gaussian program on UNIX with bash and I want to form a script that will email me once the output life terminates either "normal termination" or "false" I just started learning this last week so could you let me know how to go about this.:b: (13 Replies)
Discussion started by: Jade_Michael
13 Replies
TM::IndexAble(3pm)					User Contributed Perl Documentation					TM::IndexAble(3pm)

NAME
TM::IndexAble - Topic Maps, Trait to provide lazy and eager indices SYNOPSIS
my $tm = new TM... # get any map use Class::Trait; Class::Trait->apply ($tm, "TM::IndexAble"); # apply the trait # add a lazy cache for subclassing and instanceOf $tm->index ({ axis => 'taxo' }); $tm->index ({ axis => 'taxo', closed => 0}); # the same, lazy is NOT closed # add eager cache (= index) for taxonometrics $tm->index ({ axis => 'taxo', closed => 1}); # eager is closed, will take some time # add index for characteristics $tm->index ({ axis => 'char'}); $tm->index ({ axis => 'char', closed => 1}); # can be closed as well # ditto for reification $tm->index ({ axis => 'reify'}); $tm->index ({ axis => 'reify', closed => 1}); # create index/caches, but separate from map itself $tm->index ({ axis => 'reify', closed => 0, detached => {} }); my %stats = $tm->index; # get current indices + statistics DESCRIPTION
Like TM::Index, this package also adds index/caching capabilities to any topic map stored via TM (or any of its subclasses). The difference, though, is that the index/caching functionality is added as a trait, and not via an explicit attachment. The indices are - by default - part of the map, and not standalone objects as with TM::Index. When you add an index/cache then you simply use precomputed navigation results for the TM methods "match_forall" and "is_reified" (but not used for "reifies"). As with TM::Index you can create caching (lazy indexing) and full indices (eager precaching). Map Attachment To enrich a map with an index/cache, you call the method "index" provided here. The index/cache will by default be stored inside the map. That may be convenient in most cases. If not - as with some storage techniques - you can detach the index to live within your scope. For that purpose you simply pass in an empty hash reference. It is then your responsibility to get rid of it afterwards. Having the index detached also opens the way for you to make the index persistent. INTERFACE
Methods Following methods are mixed into the class/object: index $tm->index ({ %spec }, ...) This method establishes one or more indices/caches to the topic map. Each cache/index is described with its own hash reference. Which navigation axes should be covered by a single cache/index is specified with the "axis" field. It can have as value one of the axes in TM::Axes, or one of the following values: "taxo" Shortcut for the axes: "subclass.type" "superclass.type" "class.type" "instance.type" "char" Shortcut for the axes: "char.topic" "char.value" "char.type" "char.type.value" "char.topic.type" "reify" To control whether a cache (lazy indexing) or a full index (eager caching) should be used, the field "closed" can have two values (default is 0): 0: The default is to keep the index lazy. In this mode the index is empty at the start and it will learn more and more on its own. In this sense, the index lives under an open world assumption (hence the name), as the absence of information does not mean that there is no result. 1: A closed world index has to be populated to be useful. If a query is launched and the result is stored in the index, then it will be used, like for an open index. If no result in the index is found for a query, the empty result will be assumed. Additionally, a field "detached" can be passed in for one cache/index. It MUST contain a hash reference. Example: $tm->index ( { axis => 'reify', closed => 0, detached => {} }, { axis => 'char', closed => 1 } ); The method returns a hash with some statistical information for every axis: "requests" Number of requests since inception of the index. "hits" Number of cache hits since inception. For an eager cache (i.e. index) this number should be the same as "requests" deindex $tm->deindex ($axis, ....) $tm->deindex ($index, ....) This method gets rid of certain indices/caches, as specified by their axes. Since v1.55: You can also pass in the hash reference of the index (in the detached case). Since v1.55: Also the expansion of axes (like for "index") works now. SEE ALSO
TM, TM::Index COPYRIGHT AND LICENSE
Copyright 20(10) by Robert Barta, <drrho@cpan.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 2010-09-15 TM::IndexAble(3pm)
All times are GMT -4. The time now is 10:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy