Hi
I have below shell script to send mail alert , however I want to add more functionality in this script and that is , script should only check that file between 9 am to 5pm , and if there is no activity in this time 9 am to 5 pm for 2hours then it should give me mail alert, please help
==============================
Last edited by vbe; 05-28-2019 at 05:14 PM..
Reason: code tags
Friends,
I am in search for a shell script that is capable of running as a cronjob and have to send out an email when ever there is a CORE DUMP.
Please post the hints to achieve my goal.
Thanks in advance. (1 Reply)
hi,
i need to monitor a cron job that runs every 5 mins. if this cron job does not process the request for more than 6 hrs, an alert mail should be sent.
how do i achieve this?? (1 Reply)
Hi,
I need a shell script which runs in the backround for all the 24 hours and send a mail to us regarding the output of the prstat command when the load average increase above certain percent.
kindly help me on this...... (1 Reply)
Hi ,
I need to prepare a script which will check my database with specific to particluar table. If the row count exceeds a certain limit, i need to send a mail to a set of Recipients.
Being new to unix, please guide me to complete this task.
Advance thanks,
Sekar. (4 Replies)
I would like to know, whether is there any command/tool in Linux (something like Oracle Trigger function) to send a mail if a particular shell script has been modified with details like, modification time, modified by, etc.
Thanking in advance, (1 Reply)
I have a script like this, which calls other scripts from that script:
#!/usr/ksh
moveFiles.sh
extract.sh
readfile=/home/sample.txt
cat $readfile | while read line
do
file= `echo $line|awk '{print $4}'`
if ;
then mv $file /home/temp_stage
fi (4 Replies)
HI Guys,
I am writing one shell script to send the mail alert to some email id's if the file not modified in last 10 mins but its not working, I believe MTIME is null string is wrong . can you please assist me on this.
script :-
filename="abc.txt"
echo "Filename is $filename"... (1 Reply)
Hello,
Somebody can help me to develop a script for the below requirement
I have a 3 files in a directory which was dynamically changed everyday basis. I need a script to fetch the 1pattern of strings in each file. if the three matching pattern is same send a mail with subject as success else... (1 Reply)
Discussion started by: MATHANKUMAR
1 Replies
LEARN ABOUT HPUX
pollrcvd
POLLRCVD(8) System Manager's Manual POLLRCVD(8)NAME
pollrcvd - HylaFAX script for delivering facsimile received by polling
SYNOPSIS
/var/spool/hylafax/bin/pollrcvd mailaddr faxfile devid commid error-msg
DESCRIPTION
bin/pollrcvd is the command script invoked by the HylaFAX server whenever a facsimile is received as a result of a polling operation. The
default script uses electronic mail to deliver the facsimile to the user that submitted the poll request, and can be controlled by editing
the etc/PollDispatch shell script in the spooling area that is sourced by pollrcvd when it runs. The arguments are:
mailaddr the electronic mail address of the user that submitted the poll request.
faxfile the pathname of the received TIFF file relative to the root of the spooling hierarchy.
commid The communication identifier associated with the call (used to include a transcript when an error occurs).
devid the modem device on which the document was received.
error-msg an error message that is non-null if an error was encountered during the receive operation.
NOTES
The default script delivers facsimile as PostScript wrapped in MIME.
FILES
/var/spool/hylafax spooling area
/usr/sbin/faxinfo for printing information about the facsimile
/usr/bin/fax2ps for converting TIFF to PostScript
/usr/lib/sendmail for delivering mail
SEE ALSO faxq(8), hylafax-server(5), recvq(5)
May 12, 1996 POLLRCVD(8)