10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to check my script and change to working mode. currently it was not sending the mail and exit without calling the second script.
I need to check the file is present ="/home/Rvtools/test.csv"
if this file not found after the time retry send mail file not found
If the file exit run the... (2 Replies)
Discussion started by: ranjancom2000
2 Replies
2. Shell Programming and Scripting
Hi Guys,
I am not Good at scripting.
I need to write a script such that if output of command shows the particular word in output then send mail to abc@compay.com
-bash-3.2$ ps -ef | grep bpbkar
root 6040 1 0 13:05:19 ? 0:00 bpbkar -r 2678400 -ru root -dt 47395 -to 0... (20 Replies)
Discussion started by: manalisharmabe
20 Replies
3. Shell Programming and Scripting
hi all,
needed a script to send a notfication mail if the specified folder had the copy of the files that are older than 15 days
i.ee for example
my folder name is SAi
and the files are as follows
sai.txt
copyofsai.txt
copyofcopyofsai.txt
hemanth.txt
copyofcopyofhemanth.txt... (4 Replies)
Discussion started by: hemanthsaikumar
4 Replies
4. UNIX for Dummies Questions & Answers
Please help! I am in urgent need of assistance.
What started out as a small problem with IMAP folders not working seems to have spread.
Our mail server, Scalix running on CentOS 5.5 isn't sending out any mail.
There are now over 400 emails queued waiting to go out, all of which give the... (0 Replies)
Discussion started by: beckyboo
0 Replies
5. Shell Programming and Scripting
Hi !
I am a newbie and never officially wrote a shell script before.
The requirement for this script is :
1) Read a file called 'bpm.log' and identify if it has a specific text such as 'this is the text'. Its a static value and that is the only text we need to read.
2) If that... (2 Replies)
Discussion started by: atechcorp
2 Replies
6. Solaris
Hi all
I had a mail issue earlier today where I was not receiving any emails from the servers of one of our clients.
The mail queue just showed this:
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
o8S7eSpp020274* 5858 Tue Sep 28 10:42... (0 Replies)
Discussion started by: notreallyhere
0 Replies
7. IP Networking
hi all.
Am using smtpd_recipient_restrictions & check_recipient_access in postfix.
The hash file looks like this:
emailaddress1 HOLD
emailaddress2 HOLD
The aim is to place email from these recipients in the hold directory,check them then reinject them back in postfix on some... (0 Replies)
Discussion started by: coolatt
0 Replies
8. UNIX for Dummies Questions & Answers
rshstatus=`rsh -n lilo /db/p2/oracle/names9208/restart_names.sh`
if $rshstatus <>0 then
errstatus=1
mailx -s "xirsol8dr" ordba@xxx.com >> $log_dr
else if errstatus=0
echo "status to xirsol8dr successful"
can anyone provide if this is t he correct way to do this or is there a better way? (1 Reply)
Discussion started by: bpm12
1 Replies
9. Shell Programming and Scripting
Hi shell experts,
I would like to have a shell script running in a redhat server for monitoring the mailqueue status. I have already installed the qmHandle and I am using it to get a status of the mail queue in daily basis. I am executing the qmhandle in the cron.
Now I am planning to execute... (10 Replies)
Discussion started by: Nightman
10 Replies
10. Shell Programming and Scripting
how to write bash to superuser, when the disk space dips below 10% of the total by automatically sending an email?
It is have any sample for reference (3 Replies)
Discussion started by: foong
3 Replies
Jifty::Notification(3pm) User Contributed Perl Documentation Jifty::Notification(3pm)
NAME
Jifty::Notification - Send emails from Jifty
USAGE
It is recommended that you subclass Jifty::Notification and override "body", "html_body", "subject", "recipients", and "from" for each
message. (You may want a base class to provide "from", "preface" and "footer" for example.) This lets you keep all of your notifications
in the same place.
However, if you really want to make a notification type in code without subclassing, you can create a "Jifty::Notification" and call the
"set_body", "set_subject", and so on methods on it.
METHODS
new [KEY1 => VAL1, ...]
Creates a new Jifty::Notification. Any keyword args given are used to call set accessors of the same name.
Then it calls "setup".
setup
Your subclass should override this to set the various field values.
send_one_message
Delivers the notification, using the Email::Send mailer defined in the "Mailer" and "MailerArgs" configuration arguments. Returns true if
mail was actually sent. Note errors are not the only cause of mail not being sent -- for example, the recipients list could be empty.
If you wish to send HTML mail, set "html_body". If this is not set (for backwards compatibility) a plain-text email is sent. If
"html_body" and "body" are both set, a multipart mail is sent. See Email::MIME::CreateHTML for how this is done.
Be aware that if you haven't set "recipients", this will fail silently and return without doing anything useful.
set_headers MESSAGE
Takes a Email::MIME object "MESSAGE", and modifies it as necessary before sending it out. As the method name implies, this is usually used
to add or modify headers. By default, does nothing; this method is meant to be overridden.
body [BODY]
Gets or sets the body of the notification, as a string.
subject [SUBJECT]
Gets or sets the subject of the notification, as a string.
from [FROM]
Gets or sets the from address of the notification, as a string.
recipients [RECIPIENT, ...]
Gets or sets the addresses of the recipients of the notification, as a list of strings (not a reference).
email_from OBJECT
Returns the email address from the given object. This defaults to calling an 'email' method on the object. This method will be called by
"send" to get email addresses (for "to") out of the list of "recipients".
to_list [OBJECT, OBJECT...]
Gets or sets the list of objects that the message will be sent to. Each one is sent a separate copy of the email. If passed no
parameters, returns the objects that have been set. This also suppresses duplicates.
send
Sends an individual email to every user in "to_list"; it does this by setting "to" and "recipient" to the first user in "to_list" calling
Jifty::Notification's "send" method, and progressing down the list.
Additionally, if "to" was set elsewhere, sends an email to that person, as well.
to
Of the list of users that "to" provided, returns the one which mail is currently being sent to. This is set by the "send" method, such
that it is available to all of the methods that Jifty::Notification's "send" method calls.
preface
Print a header for the message. You want to override this to print a message.
Returns the message as a scalar.
footer
Print a footer for the message. You want to override this to print a message.
Returns the message as a scalar.
full_body
The main, plain-text part of the message. This is the preface, body, and footer joined by newlines.
full_html
Same as full_body, but with HTML.
parts
The parts of the message. You want to override this if you want to send multi-part mail. By default, this method returns a single part
consisting of the result of calling "$self->full_body".
Returns the parts as an array reference.
magic_letme_token_for PATH
Returns a Jifty::LetMe token which allows the current user to access a path on the site.
perl v5.14.2 2011-01-26 Jifty::Notification(3pm)