10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a script that emails me when I run it manually, but the crontab I'm using must be 'silencing' the output? Here's what I have:
*/15 * * * * /usr/src/blah.sh > /dev/null 2>&1
I don't want it to email me every time it runs, just when I run the sendmail command inside the script if the... (13 Replies)
Discussion started by: unclecameron
13 Replies
2. Shell Programming and Scripting
Hi, Im new with bash scripting and I want to create a conditional emailing with bash scripting. But it doesn't workout.
the conditional requirement are; if the TextDecoded value from inbox table are not the same with sms_keyword value from kontak_group table then don't email.
It keep... (10 Replies)
Discussion started by: jazzyzha
10 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Im writing a shell script:
#!/bin/bash
#Send process which has exceeded 25%
#
echo 'pri pid user nice pcpu command' > /export/home/tjmoore/file2
#
if ps -eo pri,pid,user,nice,pcpu,comm | awk '{if($5 >= 25)print $0}' >> /export/home/tjmoore/file2 2>/dev/null
#
#
#
then... (1 Reply)
Discussion started by: jay02
1 Replies
4. Shell Programming and Scripting
Hi all,
I have a table like this:
Name email booking no
xyz xyz@abc.com 1235
pqr pqr@abc.com 2536
xyz xyz@abc.com 5896
we have to send a notification to all distinct email ids with consolidated booking information in a single mail.
i.e.,
1235
2536 with some subject has... (6 Replies)
Discussion started by: dineshnarra
6 Replies
5. Shell Programming and Scripting
hi all,
how do i email a file in the body of an email rather than as an attachment ??
have a ksh script which i need to read a file and email as part of the body rather than an attachment.
my code is :
uuencode file.log | mailx -s "test"
but this sends file as an attachment.
... (2 Replies)
Discussion started by: cesarNZ
2 Replies
6. Shell Programming and Scripting
Hi,
I am having trouble with this script. It is suppose to send me an email when the specified tablespace is 60% full. I run it but nothing happens
FREESPACELOG=/home/oracle/scripts/bin/free_space/freespace.sql
email=bob@bob.edu
subject="PROD: Tablespace Free Space"
cmd="mailx -s... (1 Reply)
Discussion started by: shaseeb
1 Replies
7. Shell Programming and Scripting
Hello everybody,
I'm trying to create a script that will cd into a directory and then copy the file with yesterday's date on it and then cd into another directory doing the same thing. Afterwards, i'm trying to zip up the two files, and email them out to people. Can anyone help?
thanks a... (1 Reply)
Discussion started by: jhofilena
1 Replies
8. Solaris
How to create a mechanism that e-mails user/admin before password expiry. Assume 7 days in advance.
Thanks in advance for your great help.
Regards,
Awadhesh (4 Replies)
Discussion started by: Awadhesh
4 Replies
9. UNIX for Dummies Questions & Answers
We are running an application engine program that sends email to a list of users. In our Test Env, users are able to receive the emails but in our Prod environment, they do not. We are running the same program, and using the same stmp config. any idea on how to troubleshoot? (3 Replies)
Discussion started by: tads98
3 Replies
10. Shell Programming and Scripting
I have created three SQL scripts that are run by one central script. What I need to do is verify the output file from the three SQL scripts(KSH Scripts) is worth emailing. This I would like to do by verifiying the contents of the result file.
The contrlooing script creates the result file... (6 Replies)
Discussion started by: jagannatha
6 Replies