06-22-2008
Please read the thread at the top of this forum for instructions on how to send yourself that email.
5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Not really sure if this is the place to ask or if I am asking the correct question.
I want to create a script (ksh) on solaris. This will be a menu based script for the user and they will only give on input, a customer number.
ie ./my_script 112233
Thats the easy bit which obviously i can... (1 Reply)
Discussion started by: frustrated1
1 Replies
2. Solaris
Hi all,
where I can find a list and meaning of the ID number (for example ID 353554 kern.warning)?
Thanks in advance
Pierluigi (1 Reply)
Discussion started by: Petrucci
1 Replies
3. Post Here to Contact Site Administrators and Moderators
Apologies about the earlier post, i didnt realise, could i delete that post? I apologise again,
SynGc (1 Reply)
Discussion started by: SynGc
1 Replies
4. UNIX for Dummies Questions & Answers
Hi folks,
In what circumstance does the log move to
/var/adm/messages.0.......messages.1,messages.2,messages.3 .......etc
---------- Post updated at 06:23 PM ---------- Previous update was at 06:17 PM ----------
To make my questions more understandable,
What are the processes that... (4 Replies)
Discussion started by: kimurayuki
4 Replies
5. Solaris
This is isolated to just 1 non-global zone out of many zones managed
This is a Solaris 11 system on SPARC
This is NOT a branded zone
syslogd is active
This came to our attention when one of our scripts didn't run over the weekend prompting us to check our messages logging in... (6 Replies)
Discussion started by: samthewildone
6 Replies
LEARN ABOUT SUSE
log::dispatch::email
Log::Dispatch::Email(3) User Contributed Perl Documentation Log::Dispatch::Email(3)
NAME
Log::Dispatch::Email - Base class for objects that send log messages via email
SYNOPSIS
package Log::Dispatch::Email::MySender
use Log::Dispatch::Email;
use base qw( Log::Dispatch::Email );
sub send_email
{
my $self = shift;
my %p = @_;
# Send email somehow. Message is in $p{message}
}
DESCRIPTION
This module should be used as a base class to implement Log::Dispatch::* objects that send their log messages via email. Implementing a
subclass simply requires the code shown in the SYNOPSIS with a real implementation of the "send_email()" method.
CONSTRUCTOR
The constructor takes the following parameters in addition to the standard parameters documented in Log::Dispatch::Output:
o subject ($)
The subject of the email messages which are sent. Defaults to "$0: log email"
o to ($ or @)
Either a string or a list reference of strings containing email addresses. Required.
o from ($)
A string containing an email address. This is optional and may not work with all mail sending methods.
o buffered (0 or 1)
This determines whether the object sends one email per message it is given or whether it stores them up and sends them all at once.
The default is to buffer messages.
METHODS
o send_email(%p)
This is the method that must be subclassed. For now the only parameter in the hash is 'message'.
o flush
If the object is buffered, then this method will call the "send_email()" method to send the contents of the buffer and then clear the
buffer.
o DESTROY
On destruction, the object will call "flush()" to send any pending email.
AUTHOR
Dave Rolsky, <autarch@urth.org>
perl v5.12.1 2009-09-22 Log::Dispatch::Email(3)