12-07-2007
actually i have a file
#!/bin/ksh
echo " ************************************ " >> perst
echo " The following apps are running currently indicated by their number" >> perst
for i in Archiver1 Cleaner1 Archiver2 Interpolation DBMaint ImportAdapter_CC Extrapolation ZeroConsumptionReport DBSyncListener TnsProvAdapterCheckConfig
do
count=0
count=`ps -aef | grep java | grep $i | wc -l`
echo $i $count >> perst
ps -aef | grep java| grep $i >> /tmp/new1.txt
done
echo " ********************************************** " >> perst
mail -s "Plz find the attachment for the currently Running application"
naveed@cap.com < /tmp/new1.txt
Hi,
This Attachment contains the list of all the Applications Running Currently on
mdcaedn03.tu.com
Thanks
Ali Naveed
-------------------------------------------------------------------------can u tell me why i m not getting the content of file new1.txt in my mail
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to create a script that emails a file created by Informix Ace if the file size is > 0. It is a list of exceptions. No exceptions...no message
This does not work:
THESIZE=`ls -lA /tmp/ds_treo.txt | awk -F' ' '{print $5}'`
if
then
(cat $DSDIR/ds_treo.txt) | mail -s "Treo... (1 Reply)
Discussion started by: poste_d_ordure
1 Replies
2. Shell Programming and Scripting
Hi All,
I want to send a message through email to 5 people in unix script. Please let me know, how to do it.Please do reply it is urgent.How to do it?Please reply.thanks!
Thanks,
Mary. (2 Replies)
Discussion started by: MARY76
2 Replies
3. UNIX for Advanced & Expert Users
Hi All,
I want to send a message through email to 5 people in unix script. Please let me know, how to do it.Please do reply it is urgent.
Thanks,
Mary. (3 Replies)
Discussion started by: MARY76
3 Replies
4. Shell Programming and Scripting
Hi All,
I want to send a message through email.
I have written below code. But it is not worling. Anybody has idea, why it is not working?.
export $file1=$home1/pip1.$$
mailx -s "This Message from unix" abc@yahoo.com< $file1
thanks,Mary. (5 Replies)
Discussion started by: MARY76
5 Replies
5. Shell Programming and Scripting
Hello All
i need Shell Script to send /var/log/message or another if he have or grep this file to have some info
like PID or value (e.g like NFS mount - stop ) to some body in my System
Thanks for Advanced (2 Replies)
Discussion started by: Hosam
2 Replies
6. Shell Programming and Scripting
Hello,
I was using a shell script for sending contents of a text file(email.report) to different users.
I was using the below command in my script to send email...
cat email.report | /usr/bin/mailx -s $REQ_SUBJECT -h 5 abc@xyz.com
It was working fine all these days but now all of a sudden it... (18 Replies)
Discussion started by: smarty86
18 Replies
7. Shell Programming and Scripting
Hello ,
I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them .
I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies
8. Cybersecurity
So I was just wondering... Is there a way to send a file directly to the computer..... Ive never gotten the answer and I want to know how, I keep running in to a wall :wall:. Why you may ask, well really for security reasons due to the fact that if this is done via a port I want to make sure to... (3 Replies)
Discussion started by: orszhak
3 Replies
9. Shell Programming and Scripting
Hi
I have a requirement to write a script to capture all errors in a Logfile and send the file in email.
If there is any error occurred the subject of email will be ERROR , If there are no error occurred the subject of email will be SUCCESS.
So I created a Log file and put the Appropriate... (2 Replies)
Discussion started by: dgmm
2 Replies
LEARN ABOUT DEBIAN
vboxmail
vboxmail(8) Linux System Administration vboxmail(8)
NAME
vboxmail - script to send notification of new voice message
SYNOPSIS
vboxmail messagename callername callerid mail-to-address
DESCRIPTION
vboxmail is used by vboxgetty to send notification of a new voice message via email. It is not meant to be called directly by any user.
You can make local modifications to this script by copying it from /usr/sbin/vboxmail to /etc/isdn/vboxmail, and editing the copy there.
Note that there is an enhanced version of this script available as /usr/share/doc/isdnvboxserver/vboxmail.enhanced . To use it, copy it to
/etc/isdn/vboxmail . This enhanced version will send the recorded message as a MIME attachment in the email notification. If lame or
xingmp3enc are installed in /usr/local/bin, then the message will be converted to MP3 format; otherwise, it will be sent as a WAV file.
For this to work, you also need the following packages installed:
mime-construct sox
and of course an MP3 encoder if you want MP3 format. Note that the MP3 format will only be 50% smaller (instead of the 90% you might other-
wise expect), because of the relatively bad sound quality to begin with (8kHz sampling, mono). If you want to use another MP3 encoder than
lame or xingmp3enc, you'll have to make patches to the script. I'll be happy to implement your changes. Send them as a wishlist bug report
on isdnvboxserver.
SEE ALSO
vboxgetty(8), vboxgetty.conf(5)
AUTHOR
This manual page was written by Paul Slootman <paul@debian.org>, for Debian GNU/Linux and isdn4linux.
ISDN 4 Linux 3.25 1998/11/17 vboxmail(8)