10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I wan't to remove last 5 and 10 days files from two directory and send the remove files list in mail
Output send through mail
find /kalia/cd/ -type f -mtime +5 exec rm {} \;
find /kalia/uk/ -type f -mtome +10 exec rm {} \;
Output send through mail
File has been deleted
... (1 Reply)
Discussion started by: Kalia
1 Replies
2. Shell Programming and Scripting
Hi All,
Sorry for long topic here.
So the drill goes like that, I need a script which gathers different values from different files/locations.
A_CT=`cat a.dat | awk -F'|' '{print $1}' >> report.txt`
B_CT=`cat b.dat | awk -F'|' '{print $3}' >> report.txt`
C_CT=`cat c.dat | awk -F'|'... (4 Replies)
Discussion started by: shivakid
4 Replies
3. Shell Programming and Scripting
Hello,
Trying to get a bash for files received on daily basis and want to copy those files to different directory and send an email notification if file exists then send the file counts else Alert with no file received.
FileName format: DailyTransaction_2015-03-09_ 200.csv before 200 their is... (1 Reply)
Discussion started by: krux_rap
1 Replies
4. Shell Programming and Scripting
Hi,
I have a script written for monitoring the queue manager status continously. below is the script.
QMGR=`dspmq | awk '{print $1}' | cut -f2 -d "(" | cut -f1 -d ")"`
QMSTATUS=`dspmq | awk '{print $2}' | cut -f2 -d "(" | cut -f1 -d ")"`
count=`dspmq | awk '{print $1}' | cut -f2 -d "(" | ... (5 Replies)
Discussion started by: Anusha M
5 Replies
5. UNIX for Advanced & Expert Users
All,
I am new to shell scripting and trying to get the count of files that starts with error and with extension .out, if the count is greater than 0 and zip the file and send an email with the content of error.out file, here is my script
cd /temp
testcount =$('find . -name '*.out' -print |... (4 Replies)
Discussion started by: luckydoll
4 Replies
6. Shell Programming and Scripting
Hi All ,
i have a wrapper HTML script -FS_CHECK_HTML_SCIPT_WT_Statusbar.sh which read a TXT file (script_KB.txt) and sends output to a mail in tabular format. TXT file is having 6 columns and so wrapper script create a table with 6 columns and supplies those 6 columns data from TXT file .... (2 Replies)
Discussion started by: deepakiniimt
2 Replies
7. Shell Programming and Scripting
Hi,
I would like to send a mail with multiples files attached.
Until now i was doing a "find" and then a "tar" of the text files.
As I need to be able to read them on a mobile device such as Blackberry for instance, i would like to send them in one single mail, but without taring them.
is... (2 Replies)
Discussion started by: Pierrito
2 Replies
8. AIX
Hi,
Could anyone please help me to send multiple files of .csv format in one mail.
Thanks
Aj (2 Replies)
Discussion started by: atinjain05
2 Replies
9. UNIX for Advanced & Expert Users
I had a wierd request from one of our guys. We are running on RedHat EL5. He asked that all mail originating from 3 servers he owns be sent to files instead of being sent out. My first thought is to set "Smart" relay host in sendmail.cf on each of the 3 servers so all messages are sent to a 4th... (0 Replies)
Discussion started by: mglenney
0 Replies
10. Shell Programming and Scripting
Hello,
I need a shell script which need to send a mail with 4 *.csv files as attachments.Anybody can help me?
At present i have a script which is sending only one file as attachments.But i need a script which send 4 files in a shot.
#!/bin/ksh
/bin/mail xxxx@xx.xom << EOF
Subject:... (4 Replies)
Discussion started by: Mar1006
4 Replies