01-10-2012
Sending mail
How can i send a mail when user login in unix ENV.
How can i know present use mailID??
Moderator's Comments:
|
|
Moved out of Contact Us Forum - Please Do Not Post Technical Questions in Non-Technical Forum(s)
|
|
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everyone!
I'm trying to create a database monitoring script that reads an alert file and sends an error message if it can 'grep' a particular string.
Is there a way to send this message to a mail client using SMTP?
Even better, is there any place on this site that has these kinds of... (5 Replies)
Discussion started by: solaris73
5 Replies
2. UNIX for Advanced & Expert Users
How do I send an email with a subject and an attachment from a command prompt? (3 Replies)
Discussion started by: mskarica
3 Replies
3. Shell Programming and Scripting
Dear all,
how can i send mail using mailx or mail command?do i need to configure anything for sending mail?please help me.Its urgent.
the version i use is
Linux TDM 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686 i386 GNU/Linux
Thanks
Regards,
Pankaj (15 Replies)
Discussion started by: panknil
15 Replies
4. HP-UX
Hi..
In Hp ux box,, mails are not being sent. they are getting queued up in mail queue. (3 Replies)
Discussion started by: kkhan
3 Replies
5. Ubuntu
Hi,
I have kubuntu 8.10 and I would like to configure Ubuntu to can send mail from command line with mailx.
I've saw that I need to install a MTA. But I don't know with install and how.
Do you know some howto or url where I find how could I configure it?
Many thanks and sorry for my... (2 Replies)
Discussion started by: mierdatuti
2 Replies
6. UNIX for Dummies Questions & Answers
i want to send an email from the unix machine to the windows machine.
now windows dont have any specified folder for the mail. mail has to be sent to the email-id like abc@xyz.com
unix machine itself can not directly send mail.
it has to be transferred via mail server. (11 Replies)
Discussion started by: parmeet
11 Replies
7. Shell Programming and Scripting
Hi there,
How can I send the automated log file, daily at 7 am to the respective mail .
Thanks in Advance,
Neha (2 Replies)
Discussion started by: NehaKrish
2 Replies
8. Shell Programming and Scripting
Hi guys...
I am busy writing a script to notify me via an mail if my application is down. I have done that.
Now I want this script to stop sending mails after five mails were sent but the script should keep on checking the application.
When the application is up again that count should be... (5 Replies)
Discussion started by: Phuti
5 Replies
9. Shell Programming and Scripting
Hi All,
I have a script that looks like this:
***********
#!/bin/sh -x
cd /u01/app/oracle/diag/rdbms/spdb/spdb/trace
cat alert_spdb.log|grep Archiver >/dev/null
if ;
then
mailx -s "Archiver message in Alert log" user@email.com
fi
************
Im using the -x option to see any... (1 Reply)
Discussion started by: oradba888
1 Replies
10. Red Hat
Whats the difference between mail and mailx?
I'm trying to troubleshoot a problem where I can send mail from server A with this `echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS` command but executing the same command from server B throws me this error (Both servers are RHEL)
... (1 Reply)
Discussion started by: RedSpyder
1 Replies
LEARN ABOUT DEBIAN
statistics::basic::mode
Statistics::Basic::Mode(3pm) User Contributed Perl Documentation Statistics::Basic::Mode(3pm)
NAME
Statistics::Basic::Mode - find the mode of a list
SYNOPSIS
Invoke it this way:
my $mode = mode(1,2,3,3);
Or this way:
my $v1 = vector(1,2,3,3);
my $mod = mode($v1);
And then either query the values or print them like so:
print "The mod of $v1: $mod
";
my $mq = $mod->query;
my $m0 = 0+$mod; # this will croak occasionally, see below
The mode of an array is not necessarily a scalar. The mode of this vector is a vector:
my $mod = mode(1,2,3);
my $v2 = $mod->query;
print "hrm, there's three elements in this mode: $mod
"
if $mod->is_multimodal;
Create a 20 point "moving" mode like so:
use Statistics::Basic qw(:all nofill);
my $sth = $dbh->prepare("select col1 from data where something");
my $len = 20;
my $mod = mode()->set_size($len);
$sth->execute or die $dbh->errstr;
$sth->bind_columns( my $val ) or die $dbh->errstr;
while( $sth->fetch ) {
$mod->insert( $val );
if( defined( my $m = $mod->query ) ) {
print "Mode: $m
";
}
print "Mode: $mod
" if $mod->query_filled;
}
METHODS
new()
The constructor takes a list of values, a single array ref, or a single Statistics::Basic::Vector as arguments. It returns a
Statistics::Basic::Mode object.
Note: normally you'd use the mean() constructor, rather than building these by hand using "new()".
is_multimodal()
Statistics::Basic::Mode objects sometimes return Statistics::Basic::Vector objects instead of numbers. When "is_multimodal()" is true,
the mode is a vector, not a scalar.
_OVB::import()
This module also inherits all the overloads and methods from Statistics::Basic::_OneVectorBase.
OVERLOADS
This object is overloaded. It tries to return an appropriate string for the calculation or the value of the computation in numeric
context.
In boolean context, this object is always true (even when empty).
If evaluated as a string, Statistics::Basic::Mode will try to format a number (like any other Statistics::Basic object), but if the object
"is_multimodal()", it will instead return a Statistics::Basic::Vector for stringification.
$x = mode(1,2,3);
$y = mode(1,2,2);
print "$x, $y
"; # prints: [1, 2, 3], 2
If evaluated as a number, a Statistics::Basic::Mode will raise an error when the object "is_multimodal()".
AUTHOR
Paul Miller "<jettero@cpan.org>"
COPYRIGHT
Copyright 2012 Paul Miller -- Licensed under the LGPL
SEE ALSO
perl(1), Statistics::Basic, Statistics::Basic::_OneVectorBase, Statistics::Basic::Vector
perl v5.14.2 2012-01-23 Statistics::Basic::Mode(3pm)