Shell script to set trap for finding cron job failures

Unix box: solaris 5.8
Server: IP
Need to to set trap for cron job failures by writing a shell script

Do you mean the shell trap command or trapping errors from cron?

You do know that long crontab continued lines may be a problem if you are not really careful.

Can you please post an small example of your problem?

Hi -Thanks for the reply.

Example:
I have server name A with an IP : 125.252.235.455
I have an username /password to login into this server under SSH connection

In this server i have a path /apps/user/filename(Big.txt) [example]
Everyday we used to get the filename as Big.txt.
I want a shell script to monitor this path daily. If we receive any filename other than Big.txt , The shell script highlight the new filename by saving it another log file.
If any file comes in that log file, that will raise an autoclarify incident trap via Bridge clarify. Command i use for trap :

filter .*([9][0-4])% (.*|$) -> sysFailureMajor ->; AUTOCLARIFY:Applicationqueuename:2 APPID:APP52452 0 file mismatch - Raise P2 to Applicationqueuename-> SMM_storage;

---------- Post updated at 09:58 AM ---------- Previous update was at 06:14 AM ----------

Can anyone reply to this please?

---------- Post updated at 10:02 AM ---------- Previous update was at 09:58 AM ----------

I have just modified my request from "Shell script to set trap for finding cron job failures" to " Shell cript to find the file mismatch in a server to raise trap for it"

I dont see what post #3 has to do with post #1 ...(And thread Title...)
And so you havent replied to post #2
OR
Say "sorry folk, post #1 was not what I meant, please consider post #3"

sorry folk, post #1 was not what I meant, please consider post #3

Thread closed continure here: