Jump to content
Sign in to follow this  

Event logs and file date check

Recommended Posts

Hello all, I'm new here!

Could someone help me out making a script that checks the event logs for fatal error messages(red), and does a certain action if such an event does show up(send an e-mail using a command line e-mail editor like blat)?

Question 2:

I have weekly backups divided into folders by week(ie D:\mon,D:\tue,D:\wed,etc), I need help with a script that checks the day of the week of the current day and according to the weekday goes into a specified folder and makes sure that the date of the files in that folder are the same as the current date.

Thanks a mil!


Share this post

Link to post
Share on other sites

Thanks for that, I'm reading it now.

In the meantime, im trying to write a script that compares the current date with the date of a backup file then sends me and error message if the two are different.




How do I get the values of these macros into an array or variable?

I've tried

@YEAR = $sysdate[0]

but I get an error.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...