In log directory file contain log files and files contain some unique job name which is dynamically created (example=55555 ),if job get 55555 then send alert message, but after next run if it find ---55555 then no need send alert message
While checking the first job name you are capturing the Job name, can we store this job name and while checking for next run 15 min interval if script will find same job name Then compare with old Job name to new job name if it is same then no need alert message to users
below mention files
log files:
I assume you want to run your script from crontab.
You can store the current job name in a file.
Before you do it, compare it with the old file contents; if different then send mail.
This User Gave Thanks to MadeInGermany For This Post:
Am not using crontab its running by scheduling tools ,Could u please explain bit more or share me sample script so that i can analyzed
1.we can store that variable (job name into a file while second run it will check that temp file and compare the value if file size 0 then go to else part
I would like to know the maximum integer that a variable can hold. Actually one of my variable holds value 2231599773 and hence the script fails to process it.Do we have any other data type or options available to handle this long integers? (9 Replies)
Hi,
I have multiple functions that can be called by any shell script. These functions have inbuilt echo statements to logs their activity into a log file. When I run multiple shell scripts that call these functions, they all log into the same log file and I am not able to differentiate which... (2 Replies)
Just spent the last hour cruising the FAQ and doing some searches. I learn best by getting one or two books and just starting from scratch and building up a system. Looks like that's the way most of you recommend getting going anyway. I'm armed with several book titles now, and I'll head off to... (2 Replies)
Hi,
Thanks in advance.
i need to kill a unix background running job after that job process completes.
i can kill a job by giving the following unix command
kill -9 processid
how to kill the job after the current process run gets completed ?
Appreciate your valuable help.
... (1 Reply)