10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have mail:
cat /home/oracle/scripts/dbsizedaily.txt | mail -s "$TODAY: PROD DB Size" $RECIPIENTS
I like to get and put USED_GB and %USED of the very last row from /home/oracle/scripts/dbsizedaily.txt.
/home/oracle/scripts/dbsizedaily.txt has :
DATE TIME TOTAL_GB USED_GB ... (6 Replies)
Discussion started by: Daniel Gate
6 Replies
2. Shell Programming and Scripting
Hi,
I have below script
PROJECT_NAME=UDL/UDL_Weekly
sub= echo ${PROJECT_NAME}|cut -d "/" -f2
cat pr.sh|mail -s "`hostname`: $sub failed" sonu.pal@xyz.com
While running the script I am receiving the subject line in mail as " podetlsapp01: failed' instead of " podetlsapp01: ... (1 Reply)
Discussion started by: sonu_pal
1 Replies
3. Shell Programming and Scripting
Hi Team,
I coded my code to send mail to some reciepents with subject and date.
Can somebody suggest me how to add host name to subject ? and the below code is correct for date ?
my aim is to send mail with "subject in < hostname> on <date>".When i execute this script on my server its hung... (3 Replies)
Discussion started by: rocking77
3 Replies
4. Shell Programming and Scripting
HI,
After giving the mail -e name@domain.com its asking the subject : after this its enter in to the body of the mail i.e. (in edit mode)
How to end this edit process to send mail ? (2 Replies)
Discussion started by: thelakbe
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a cron job that creates backups nightly and sends me an email with output from the script. I'm recieving the email and the output; however, the subject field is always empty. Here is what I have in my crontab
00 23 * * * sh /test_backup/test_script | mail -s "Backups"... (2 Replies)
Discussion started by: orahi001
2 Replies
6. UNIX for Advanced & Expert Users
Hi
Am fetching a weekly report pf data..once i fetched the data i need a sent report by mail.
In the subject of that mail i want to sent a message like..
SUBJECT :The report had been fetched from (01/12/08 to 07/12/08).
I need to send a report like this every week with that particular... (2 Replies)
Discussion started by: bobprabhu
2 Replies
7. Shell Programming and Scripting
Hi,
I have a complicated requirement.I need to search for a particular pattern in the subject of incoming mail to a set of users and need to save the content of the mail in a file which will be uploaded to a file server.
I have a perl script to do the upload.I need a script to sort the mail... (2 Replies)
Discussion started by: sriram.s
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am trying to send some file to some mail ids using mail command in UNIX.
Now the issue is I am not able to find how to add "Subject text" to the command.
So I am using command like
"mail abc@yahoo.com < file_name"
Now if I use simple mail command I can set subject text by using... (2 Replies)
Discussion started by: hkapil
2 Replies
9. UNIX for Dummies Questions & Answers
I am new to this site so please bear with my ignorances.
I have started playing with mail on AIX 4.3.3 with many successes (thanks to this site) but am now stuck.
I want to send a mail with the subject as the result of a script, eg. I want the mail body to read as the output from 'df -k... (4 Replies)
Discussion started by: kiano
4 Replies
10. 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