|
Answer» I need to create a batch file that runs EVERY half hour or 1 hour on specific file (log file) and if it sees same TIMESTAMP more than 10 lines it should send email notification.Appreciate if ANYBODY help on this... for example, timestamp shows in the log file: [6/12/09 0:07:09:920 EDT] 0000031b SystemOut O MY_PROTO is [6/12/09 0:07:09:920 EDT] 0000031b SystemOut O PLATFORM is qa [6/12/09 0:07:09:920 EDT] 0000031b SystemOut O MY_HOST is abc.ac.tx.anet [6/12/09 0:07:09:920 EDT] 0000031b SystemOut O MY_PORT is 389 [6/12/09 0:07:09:920 EDT] 0000031b SystemOut O MY_USER is [6/12/09 0:07:09:920 EDT] 0000031b SystemOut O MY_PASS is avcfE [6/12/09 0:07:09:920 EDT] 0000031b SystemOut O MY_PROTO is ldap:// [6/12/09 0:07:09:920 EDT] 0000031b SystemOut O PLATFORM is prod [6/12/09 0:07:09:920 EDT] 0000031b SystemOut O MY_HOST is abc.ac.tx.anet [6/12/09 0:07:09:920 EDT] 0000031b SystemOut O MY_PORT is 389
Thanks, -Ram
|