10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
Hi Team,
Please can anyone tell me how to call mail ids from different file in shell script.
For Example:
=========
export MAILX=/bin/mailx
export MAIL_DBA=xxx@gmail.com,yyy@gmail.com,zzz@gmail.com
sendalertmess()
{
MESSAGE="ALARM"
echo $MESSAGE | MAILX -s "uname -n :Oracle error"... (3 Replies)
Discussion started by: indira_s
3 Replies
3. Shell Programming and Scripting
Hi Guys,
I have a postfix server which is deferring emails. Now I need to send notification to a specific email address if:
The sender of the deferred email is: abc@example.com
Contains specific subjects: a file (/opt/subjects) contains all the subjects in place
Then need to send a... (0 Replies)
Discussion started by: linuxrulz
0 Replies
4. Shell Programming and Scripting
Guys, I have a problem :confused: and I need some help:
I've to process many huge zip files.
I'd code an application that receive the data from a pipe, so I can simple unzip the data and send it (via pipe) to my app.
Something like that:
gzip -dc <file> | app
The problem is: How can I... (7 Replies)
Discussion started by: Rkolbe
7 Replies
5. Shell Programming and Scripting
Hi,
Another problem, here is my code
#!/bin/sh
dir='/opt/apps/script/CSV'
datadir='/opt/apps/script/data'
while : ; do
ls -1rt $dir/*.csv > /dev/null 2>&1
if ;then
cp $datadir/weekly.txt $dir/weekly.csv
else
exit 0
fi
done (10 Replies)
Discussion started by: tententen
10 Replies
6. 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
7. UNIX for Advanced & Expert Users
Hi
i am looking for the script which can send file to different mailids, please halp me out.
Thanks in advance. (3 Replies)
Discussion started by: vpandey
3 Replies
8. Shell Programming and Scripting
I need a shell script which checks for a file in a particuler folder and should send me a mail if the file of that name is present.
Please help me on this.I am new to shell scripting. (6 Replies)
Discussion started by: jayaramanit
6 Replies
9. Shell Programming and Scripting
In shell script how can I attach a file and send a mail.
suppose if I written like the following way
usr/bin/mail 'subject" "mail_id" < file.
a mail goes to the mail-id with the content of file.But I want the file to be atttached to the mail.How can I get it.is there any way for this.
... (9 Replies)
Discussion started by: Mar1006
9 Replies
10. Linux
Hi Guys
I am using this version of Linux box (as shown below). I am unable to send email from the box. But I am not getting any errors while sending email. :mad:
Any idea what could be the reason? What entry should I check? :confused:
$ uname -a
Linux machine-name 2.4.21-144-smp4G #1... (6 Replies)
Discussion started by: csaha
6 Replies