12-06-2013
Thanks Zozoo,
But in SunOs it is not working. Please advice to attach the file in mail for Sunos system.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear All:
I want to send a message to a list of people with a subject and an attachement, currently I am using the following command into a shell script:
uuencode $FILENAME.gz $FILENAME.gz | mail john.kennedy@mycompany.com m.m@mycompany.com
With this command I can send the message for a... (1 Reply)
Discussion started by: josecollantes
1 Replies
2. UNIX for Dummies Questions & Answers
I wanted to try sending a mail with an attachement at command prompt in unix. Some one please advise that how we can do it ?
Thanks, :) (2 Replies)
Discussion started by: gaddeg
2 Replies
3. Shell Programming and Scripting
Hi
Can somebody help me in wirting shell script in the following way.Desperately i have poseted this..
1.How can I connect to Oracle(Sqlplus) from UNIX.
2.After connecting to it I have to execute an oracle proceudure..
3.Execution of the procedure will give some set of rows..
4.The set of... (6 Replies)
Discussion started by: chgopi
6 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
I am a newbie to unix.
I need to send an email with an attachment in unix to some id like abc@some_company.com
Code i have used is
------------Code---------------------------
#!/bin/ksh
set -x
#set -n
#cript: unix_mail_withattachments.ksh
# Aurthor: Ravin Maharaj
#... (1 Reply)
Discussion started by: samuelc
1 Replies
5. Shell Programming and Scripting
Hi all,
i am working with CSH, i want to know that
how to send a mail in UNIX shell script (CSH) with attachment as well as message body.
i know that how to send a mail with attachment and message body. but i want know both things in a single mail
Suggession would be appreciate.
... (1 Reply)
Discussion started by: psiva_arul
1 Replies
6. Shell Programming and Scripting
Hi All,
I have general query that ...in my script i used uuencode
option like below.
cd /location
(cat test.txt
uuencode test.csv test.csv ) | mail -s "test mail" "mail_id"
but whenever i run the above command its giving error like below
./testscript.sh: uuencode not found:
... (1 Reply)
Discussion started by: Shahul
1 Replies
7. Shell Programming and Scripting
Can't attach text files to 'mail' command. I dont have mutt or mailx to use on my server. so i have to use mail command
any help would be great.
Regards,
Kiran (1 Reply)
Discussion started by: dddkiran
1 Replies
8. Shell Programming and Scripting
Hi ,
I am using the below code to send mail through a script which run as a cron job.
msgdate=`date +"%a, %e %Y %T %z"`
daemail=$(cat <<!
From: $from
To: $emailtarget
Subject: $subject
Mime-Version: 1.0
Content-Type: multipart/mixed;
Content-Disposition: inline
$priority
$CONTENT
!)... (2 Replies)
Discussion started by: ahamed
2 Replies
9. UNIX for Dummies Questions & Answers
Hi
The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment .
cat Employee.sql
SET VERIFY OFF
SET PAGESIZE 200
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies
LEARN ABOUT DEBIAN
aspect::advice
Aspect::Advice(3pm) User Contributed Perl Documentation Aspect::Advice(3pm)
NAME
Aspect::Advice - Change how Perl code is run at a pointcut
SYNOPSIS
# Trace calls to all functions in all MyAccount classes
use Aspect;
before {
print 'Called: '. $_->sub_name;
} call qw/^MyAccount::/;
# Repeat using the pure object-oriented interface
use Aspect::Advice::Before ();
use Aspect::Pointcut::Call ();
my $advice = Aspect::Advice::Before->new(
pointcut => Aspect::Pointcut::Call->new( qr/^MyAccount::/ ),
code => sub {
print 'called: '. $_->sub_name;
},
);
DESCRIPTION
An "advice" in AOP lingo is composed of a condition (known as a Aspect::Pointcut) and some code that will run when that pointcut is true.
This code is run before, after, or around the target pointcut depending on the particular advice type declaration used.
You do not normally create advice using the constructor. By "use()"ing Aspect, you get five advice declaration subroutines imported.
"before" is used to indicate code that should run prior to the function being called. See Aspect::Advice::Before for more information.
"after" is used to indicate code that should run following the function being called, regardless of whether it returns normally or throws
an exception. See Aspect::Advice::After for more information.
"around" is used to take deeper control of the call and gives you your own lexical scope between the caller and callee, with a specific
"proceed" call required in your code to execute the target function. See Aspect::Advice::Around for more information.
When the advice code is called, it is provided with an Advice::Point object which describes the context of the call to the target function,
and allows you to change it.
This parameter is provided both via the topic variable $_ (since version 0.90) and additionally as the first parameter to the advice code
(which may be deprecated at some point in the future).
If you are creating "advice" objects directly via the OO interface, you should never use this class directly but instead use the class of
the particular type of advice you want to create.
AUTHORS
Adam Kennedy <adamk@cpan.org>
Marcel Gruenauer <marcel@cpan.org>
Ran Eilam <eilara@cpan.org>
COPYRIGHT
Copyright 2001 by Marcel Gruenauer
Some parts copyright 2009 - 2012 Adam Kennedy.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-02-01 Aspect::Advice(3pm)