10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
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... (2 Replies)
Discussion started by: scazed
2 Replies
2. Shell Programming and Scripting
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)
Discussion started by: abhigrkist
1 Replies
3. Shell Programming and Scripting
Hi,
Im looking to write a script to check if a file exists and if it doesnt then send an email out, Ive found the below code but I don't understand the ! in the if statement can anyone explain?
Any help will be much appreciated
#!/bin/bash
if
then
echo "File not exists" |... (10 Replies)
Discussion started by: 02JayJay02
10 Replies
4. Shell Programming and Scripting
Hi i want to know how can i write a script to check if any changes are made and send an alert in crontabs . i am using .ksh file extension for writing scripts. (3 Replies)
Discussion started by: honey26
3 Replies
5. Shell Programming and Scripting
Dear Experts,
I have a requirement where a 3rd party system places a file in my folder.I am running on HP UNIX. I would like to have a unix script which will check for the existence of the file. If yes OK. if the file is not placed then it has to send a mail to couple of emails ids saying that... (3 Replies)
Discussion started by: phani333
3 Replies
6. AIX
Hi,
I want to write a script to send alert by email whenever any failed login to the AIX. Can anyone tell how to do that?
Thanks!
Victor (1 Reply)
Discussion started by: victorcheung
1 Replies
7. Shell Programming and Scripting
Hi All,
I have a have a script which checks for some processes whether they are running or not and if they are not running then it send a mail specifying that the processes are not running.
This particular script example abc.ksh is runs in a cron like this
0,5,10,15,20,25,30,35,40,45,50,55 * * *... (5 Replies)
Discussion started by: usha rao
5 Replies
8. Shell Programming and Scripting
Hi All,
AIX 5.3 64 bit:
I am using the below shell script the objective is:
Objective:
========
Use SQL*Plus to query the MAX(SEQUENCE#) from both databases V$LOG_HISTORY view. If the STANDBY appears to be falling behind,then send alert mail through the below shell script:
How... (0 Replies)
Discussion started by: a1_win
0 Replies
9. Shell Programming and Scripting
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)
Discussion started by: smurala
1 Replies
10. UNIX for Dummies Questions & Answers
Dear All,
I am a newer of Unix Administrator. I would like to know any way to make Unix syslog critical error send automatically to me by email.
Then I don't need to check it manually and frequency everyday.
Any suggestion?
Thanks for all your kindly help.
Jacky (1 Reply)
Discussion started by: ITJacky
1 Replies