03-29-2010
This is i am using in file2.unx
find /home/dbaprod/test -name file1.unx -cmin +5 -maxdepth 1 -exec mailx -s "file 5 minutes old"
muraliinfy04@gmail.com {} \;
this is crontab entry
02 * * * * /home/dbaprod/test/file2.unx >>/tmp/exception 2>&1
but i am not getting output.mailx is working...actually i need to check the file time when it received in the folder.if it is stays more than 30 min in that folder i need to receive a mail..can any one help me in this...it's urgent...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
shell script to send email with usage of space in the directory as description :
Please any one help me in writing a script to send email with usage of space in the directory as description . (3 Replies)
Discussion started by: sakthifire
3 Replies
2. Shell Programming and Scripting
hi,
A script which look into a directory and send an alert via a mail. If there is any file exisiting in a directory for more then 10 min. (5 Replies)
Discussion started by: madfox
5 Replies
3. Shell Programming and Scripting
Hi All,
I am new to the unix , i have to deliver one script very urgently
I have to write a shell script where i have i want to send email to specific email id
in this script i want
FROM to be parameterized and stored in a variable
TO to be parameterized and stored in a variable... (3 Replies)
Discussion started by: nileshbhawsar
3 Replies
4. 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
5. Shell Programming and Scripting
Hi Friends,
Could you guys help me out of this problem... I need to send an email to all the users and the email has to be picked from the text file.
text file contains the no. of records like:
giridhar
224285
847333
giridhar276@gmail.com
ramana
84849
33884
venkata.ramana@gmail.com... (6 Replies)
Discussion started by: giridhar276
6 Replies
6. Shell Programming and Scripting
Hi Guys,
I have this script which will monitor oracle db process if up or down.And I want it to send email if it's down and the time it's back to online. However my script just keep on sending "Email Up" if the db is up or "Email Down" if the db is down.Is there any way to trap it so that it... (5 Replies)
Discussion started by: d3xt3r
5 Replies
7. Shell Programming and Scripting
This is my below script which is working fine as it send only plain text email.
So My question is- How can I modify my below script to send this as an HTML formatted email? I want to show the text color of this expression `(echo "100*$TEST2/$TEST1" | bc -l)` as `RED` in an email and that can be... (3 Replies)
Discussion started by: raihan26
3 Replies
8. Shell Programming and Scripting
Hello ALL,
need a BASH script who find file and send email with attachment.
I have 50 folders without sub directories in each generated files of different sizes but with a similar name Rp01.txt Rp02.txt Rp03.txt ...etc. Each directors bound by mail group, I need a script that goes as... (1 Reply)
Discussion started by: penchev
1 Replies
9. Shell Programming and Scripting
I have a objective of Sending email if latest file in a directory(excluding files of sub-dirs) is older than 2 hours.
eg : ls -ltr
drwx--x--x 2 abcde abc 256 2017-02-07 20:10 Mail
-rw-rw-r-- 1 abcde abc 1170 2017-02-24 17:30 test
-rw-rw-r-- 1 abcde abc 356 2017-03-09 18:00 xyz.csv... (3 Replies)
Discussion started by: simpltyansh
3 Replies
10. Shell Programming and Scripting
Hi All,
I have the below code(.sh) and need to send an email.
#!/bin/bash
cp /u02/xxc_incoming/TEST*.dat /u02/xxc_archive_incoming/AMER7764_ARPP_2/
cat /u02/xxc_incoming/TEST*.dat > /u02/xxc_incoming/XXC_TEST.dat
rm /u02/xxc_incoming/TEST*.dat
cd $XXC_TOP/bin
sqlldr userid=apps/<pwd> ... (12 Replies)
Discussion started by: Mist123
12 Replies
PACKF(1) [nmh-1.5] PACKF(1)
NAME
packf - pack messages in nmh folder into a single file
SYNOPSIS
packf [+folder] [msgs] [-file name] [-mbox] [-mmdf] [-version] [-help]
DESCRIPTION
Packf will pack copies of messages from a folder, into a single file.
If the -mbox switch is given (the default), then the messages are separated using mbox (uucp) style delimiters. This is the format used by
most mail clients (elm, mailx, etc.).
If the -mmdf switch is given, then the messages are separated by mmdf style delimiters. Each message in the file is separated by four
CTRL-A's and a newline.
You may specify the name of the file in which to use with the -file name switch. If you do not specify the name of the file, it will
default to "msgbox".
If the given file name points to an existing file, then the specified messages will be appended to the end of the file, otherwise the file
will be created and the messages appended.
packf makes an mbox-style delimiter by examining the first line of the message. If the first line is a "Return-Path" field, its address
and the current date and time are used. Otherwise, if the first line has an "X-Envelope-From" field, its contents (which should already be
in the correct format) are used. Otherwise, a dummy address and the current date and time are used.
Messages that are packed by packf can be unpacked using inc.
FILES
$HOME/.mh_profile The user profile
.msgbox.map A binary index of the file
PROFILE COMPONENTS
Path: To determine the user's nmh directory
Current-Folder: To find the default current folder
Msg-Protect: To set mode when creating a new `file'
SEE ALSO
inc(1), msh(1)
DEFAULTS
`+folder' defaults to the current folder
`msgs' defaults to all
`-mbox'
`-file ./msgbox'
CONTEXT
If a folder is given, it will become the current folder. The first message packed will become the current message.
MH.6.8 11 June 2012 PACKF(1)