09-03-2002
Now *THAT* would be funny.
Psssst, I'll give you a dollar!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi.
I want to add email notification so when the my script finishes it sends out an email of the results to our team. If there are errors the subject on the email should say there were errors.
If any having idea/sample scripts pls share with me. (2 Replies)
Discussion started by: redlotus72
2 Replies
2. Forum Support Area for Unregistered Users & Account Problems
Hello,
I registered an account several hours ago, and never recieved the email
registration link in my email account. Read the instructions posted here, and
requested to resend registration link, and this one also has not shown up in
my email acccount.
yes, I've checked the bulk folder as... (1 Reply)
Discussion started by: denn
1 Replies
3. AIX
I have two different cron jobs that run on the same days. The jobs are 7 hours apart. Both jobs are set to send notification emails when they start running.
Both jobs always run successfully, but I only receive an email from the first job. I never get the email from the second job.
... (1 Reply)
Discussion started by: sasaliasim
1 Replies
4. AIX
Hi,
I'm fairly new to Aix and am looking for some help on the following.
I have setup a cron job under root and want it to send the email once it's run to an external email address. I can get it to send the output in an email to me by using mail on the end of the crontab entry. But I would... (1 Reply)
Discussion started by: elmesy
1 Replies
5. UNIX for Dummies Questions & Answers
Hello All,
1) I am trying to understand the shell script written already, below is the code in this code i am seeing a variable $EMAIL_ID which was not defined in entire script, neither it is passed as a parameter while executing shell script nor it is defined in .profile, could you please tell... (1 Reply)
Discussion started by: Ariean
1 Replies
6. UNIX for Advanced & Expert Users
hi guys
I hope this goes here
Have someone used Linux heartbeat to send email when the Slave server becomes the Master?
I've read I can configure the MailTo under
/etc/ha.d/resource.d
but I really don't know how to do it.
I basically need my primary server to send an email when it... (2 Replies)
Discussion started by: karlochacon
2 Replies
7. AIX
Hi
All of a sudden the syslog daemon in the server went down and then later I started it manually
# ps -ef | grep syslogd
root 217228 114906 0 Nov 16 - 0:00 /usr/sbin/syslogd
root 430306 290870 0 14:18:11 pts/0 0:00 grep syslogd
Can some one help me with a script which will monitor the... (2 Replies)
Discussion started by: newtoaixos
2 Replies
8. Shell Programming and Scripting
HI
what i need to be able to do is add a email to the end of a rsync. my current ion configures writes a daily log to disk, but real want to send the log to a central email address.
The current script is as below, is this possible?
#!/bin/bash
if
then
rsync -aWv --stats progress... (3 Replies)
Discussion started by: treds
3 Replies
9. Shell Programming and Scripting
Hi All,
I need write a linux script which emails each record to the employee manager email-id which will be specified inside the file.
Each employee can have a different manager too..
file contain 200 to 300 records
Employee ID, Employee Name, Employee Email-ID, Manager, Manager... (4 Replies)
Discussion started by: tradingspecial
4 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I am getting error below when testing email. is there a way I can configure email on Solaris?
SunOS -s 5.10 Generic_147440-04 sun4u sparc SUNW,SPARC-Enterprise
echo "hello" | sendmail -v abcd
WARNING: local host name (-s) is not qualified; see cf/README: WHO AM I?
abcd... Connecting... (1 Reply)
Discussion started by: roshanbi
1 Replies
LEARN ABOUT MOJAVE
moose::cookbook::snack::keywords
Moose::Cookbook::Snack::Keywords(3) User Contributed Perl Documentation Moose::Cookbook::Snack::Keywords(3)
NAME
Moose::Cookbook::Snack::Keywords - Restricted "keywords" in Moose
VERSION
version 2.1202
DESCRIPTION
Moose exports a number of sugar functions in order to emulate Perl built-in keywords. These can cause clashes with other user-defined
functions. This document provides a list of those keywords for easy reference.
The 'meta' keyword
"use Moose" adds a method called "meta" to your class. If this conflicts with a method or function you are using, you can rename it, or
prevent it from being installed entirely. To do this, pass the "-meta_name" option when you "use Moose". For instance:
# install it under a different name
use Moose -meta_name => 'moose_meta';
# don't install it at all
use Moose -meta_name => undef;
Moose Keywords
If you are using Moose or Moose::Role it is best to avoid these keywords:
extends
with
has
before
after
around
super
override
inner
augment
confess
blessed
Moose::Util::TypeConstraints Keywords
If you are using Moose::Util::TypeConstraints it is best to avoid these keywords:
type
subtype
class_type
role_type
maybe_type
duck_type
as
where
message
inline_as
coerce
from
via
enum
find_type_constraint
register_type_constraint
Avoiding collisions
Turning off Moose
To remove the sugar functions Moose exports, just add "no Moose" at the bottom of your code:
package Thing;
use Moose;
# code here
no Moose;
This will unexport the sugar functions that Moose originally exported. The same will also work for Moose::Role and
Moose::Util::TypeConstraints.
Sub::Exporter features
Moose, Moose::Role and Moose::Util::TypeConstraints all use Sub::Exporter to handle all their exporting needs. This means that all the
features that Sub::Exporter provides are also available to them.
For instance, with Sub::Exporter you can rename keywords, like so:
package LOL::Cat;
use Moose 'has' => { -as => 'i_can_haz' };
i_can_haz 'cheeseburger' => (
is => 'rw',
trigger => sub { print "NOM NOM" }
);
LOL::Cat->new->cheeseburger('KTHNXBYE');
See the Sub::Exporter docs for more information.
namespace::autoclean and namespace::clean
You can also use namespace::autoclean to clean up your namespace. This will remove all imported functions from your namespace. Note that
if you are importing functions that are intended to be used as methods (this includes overload, due to internal implementation details), it
will remove these as well.
Another option is to use namespace::clean directly, but you must be careful not to remove "meta" when doing so:
package Foo;
use Moose;
use namespace::clean -except => 'meta';
# ...
SEE ALSO
Moose
Moose::Role
Moose::Util::TypeConstraints
Sub::Exporter
namespace::autoclean
namespace::clean
AUTHORS
o Stevan Little <stevan.little@iinteractive.com>
o Dave Rolsky <autarch@urth.org>
o Jesse Luehrs <doy@tozt.net>
o Shawn M Moore <code@sartak.org>
o XXXX XXX'XX (Yuval Kogman) <nothingmuch@woobling.org>
o Karen Etheridge <ether@cpan.org>
o Florian Ragwitz <rafl@debian.org>
o Hans Dieter Pearcey <hdp@weftsoar.net>
o Chris Prather <chris@prather.org>
o Matt S Trout <mst@shadowcat.co.uk>
COPYRIGHT AND LICENSE
This software is copyright (c) 2006 by Infinity Interactive, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.18.2 2014-01-19 Moose::Cookbook::Snack::Keywords(3)