rsmedude Posted May 12, 2017 Share Posted May 12, 2017 Hello all, I am working on a project for myself and I need a little help. I have the script writing a log for me to keep track of a program. it tracks if the program is up and running or if it had to be restarted. I even have an entry for if the entire computer gets rebooted. All of this is working fantastically! Now I am trying to look at adding a few lines that will "trim" the text file down based on two criteria. Criteria 1. Date - = or < 30 days from current date. 2. Data - = ATCS Pittsburg was found running properly by the AutoIt3 Script 3. Data - = ATCS Harrisburg was found running properly by the AutoIt3 Script I want to add whatever this new code will be to my existing. I am not looking to reinvent the wheel here since what I have is working right. Here is what my code looks like right now. expandcollapse popup;- ATCS Running / Restart Check ;~ REV 5.0 ;- Written By: James D. Williams ;- Version Additions: ;- 05-11-2017 Ver 5.0 - Added NS Pittsburg to active service. ;- Added a 2 minute wait step at the begining of the script to allow for windows to regain all network drives. ;- Added a log entry to show if the entire computer was rebooted. ;- Added a version additions entry to the top of this version. ;- All versions from this point forward will have the "Version Additions" that were applied to it at the top as well as in the ;- "Version History". #include <File.au3> Sleep(120000) ;sleep 60 seconds ;~ Open the logfile in write mode. Local $hFile = FileOpen(@ScriptDir & "\ATCS_UP_CHECK_REV5.0.log", 1) _FileWriteLog($hFile, "*ALERT* *ALERT* SERVER WAS REBOOTED *ALERT* * ALERT*") ; Write to the logfile passing the filehandle returned by FileOpen. FileClose($hFile) ; Close the filehandle to release the file. While 1 ;Start Loop ;- START OF ATCS PITTSBURG If ProcessExists("atcsmon_PITTSBURG.exe") Then ;~ Open the logfile in write mode. Local $hFile = FileOpen(@ScriptDir & "\ATCS_UP_CHECK_REV5.0.log", 1) _FileWriteLog($hFile, "ATCS Pittsburg was found running properly by the AutoIt3 Script") ; Write to the logfile passing the filehandle returned by FileOpen. FileClose($hFile) ; Close the filehandle to release the file. Else ;If Process does not exist Run("C:\ATCS Monitor_PITTSBURG\atcsmon_PITTSBURG.exe", "", @SW_SHOWMINIMIZED) ;~ Open the logfile in write mode. Local $hFile = FileOpen(@ScriptDir & "\ATCS_UP_CHECK_REV5.0.log", 1) _FileWriteLog($hFile, "*ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script") ; Write to the logfile passing the filehandle returned by FileOpen. FileClose($hFile) ; Close the filehandle to release the file. EndIf ;- END OF ATCS PITTSBURG ;- START OF ATCS HARRISBURG CHECK If ProcessExists("atcsmon_HARRISBURG.exe") Then ;~ Open the logfile in write mode. Local $hFile = FileOpen(@ScriptDir & "\ATCS_UP_CHECK_REV5.0.log", 1) _FileWriteLog($hFile, "ATCS Harrisburg was found running properly by the AutoIt3 Script") ; Write to the logfile passing the filehandle returned by FileOpen. FileClose($hFile) ; Close the filehandle to release the file. Else ;If Process does not exist Run("C:\ATCS Monitor_HARRISBURG\atcsmon_HARRISBURG.exe", "", @SW_SHOWMINIMIZED) ;~ Open the logfile in write mode. Local $hFile = FileOpen(@ScriptDir & "\ATCS_UP_CHECK_REV5.0.log", 1) _FileWriteLog($hFile, "*ALERT* ATCS Harrisburg was restarted by the AutoIt3 Script") ; Write to the logfile passing the filehandle returned by FileOpen. FileClose($hFile) ; Close the filehandle to release the file. EndIf ;- END OF ATCS HARRISBURG ;- START OF ATCS ALLENTOWN ;- END OF ATCS ALLENTOWN Sleep(60000) ;sleep 60 seconds WEnd ;Close Loop ;- Version History ;- 06-16-2015 Ver 1.0 - Initial write of script. ;- 06-17-2015 Ver 2.0 - Added Log file capability to script so that all activity is logged. ;- 06-18-2015 Ver 3.0 - Corrected eror in Log File excecution of the script. ;- 06-19-2015 Ver 3.5 - Further refinement of the Log File section of the script. ;- 05-10-2017 Ver 4.0 - Changed File name of ATCS from atcsmon.exe to atcsmon_harris.exe ;- Added Commenting out for setting up other territories. ;- 05-11-2017 Ver 5.0 - Added NS Pittsburg to active service. ;- Added a 2 minute wait step at the begining of the script to allow for windows to regain all network drives. ;- Added a log entry to show if the entire computer was rebooted. ;- Added a version additions entry to the top of this version. ;- All versions from this point forward will have the "Version Additions" that were applied to it at the top as well as in the ;- "Version History". Here is something along the lines of what I am thinking: (It would be placed between an Open and Close command set.) ;- this is the start of my sudo code. If LineExists("ATCS Pittsburg was found running properly by the AutoIt3 Script" & _Date = < 30 Days)Then DeleteLine Else If LineExists("ATCS Harrisburg was found running properly by the AutoIt3 Script" & _Date = < 30 Days)Then DeleteLine EndIf ;- Here ends my rudamentry understadning of scripting! Or I can run it like this: (I think as two separate sets would be more beneficial incase conditions change on the computer and I need to edit the script.) ;- this is the start of my sudo code. If LineExists("ATCS Pittsburg was found running properly by the AutoIt3 Script" & _Date = < 30 Days)Then DeleteLine Else EndIf If LineExists("ATCS Harrisburg was found running properly by the AutoIt3 Script" & _Date = < 30 Days)Then DeleteLine Else EndIf ;- Here ends my rudamentry understadning of scripting! Here is a sample of the log file for reference sake: expandcollapse popup2017-05-11 19:58:43 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-05-11 19:59:43 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-05-11 20:00:44 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-05-11 20:02:05 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-05-11 20:02:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:03:05 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-05-11 20:03:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:04:05 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-05-11 20:04:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:06:48 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-05-11 20:06:48 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:07:48 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-05-11 20:07:48 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:12:21 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:12:21 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:13:21 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:13:21 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:17:25 : *ALERT* *ALERT* SERVER WAS REBOOTED *ALERT* * ALERT* 2017-05-11 20:17:25 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:17:25 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:18:25 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:18:25 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:19:25 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:19:25 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:20:25 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:20:25 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:21:25 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:21:25 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:22:25 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:22:25 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:23:26 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:23:26 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:24:26 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:24:26 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:25:26 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:25:26 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:26:26 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:26:26 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:27:26 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:27:26 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:30:00 : *ALERT* *ALERT* SERVER WAS REBOOTED *ALERT* * ALERT* 2017-05-11 20:30:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:30:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:31:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:31:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:32:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:32:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:33:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:33:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:34:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:34:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:35:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:35:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:36:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:36:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:37:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:37:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:38:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:38:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:39:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:39:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:40:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:40:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:41:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:41:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:42:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:42:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:43:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:43:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:44:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:44:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:45:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:45:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:46:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:46:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:47:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:47:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:48:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:48:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:49:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:49:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:50:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:50:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:51:00 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:51:00 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:52:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:52:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:53:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:53:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:54:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:54:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:55:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:55:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:56:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:56:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:57:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:57:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:58:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:58:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 20:59:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 20:59:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:00:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:00:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:01:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:01:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:02:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:02:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:03:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:03:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:04:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:04:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:05:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:05:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:06:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:06:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:07:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:07:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:08:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:08:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:09:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:09:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:10:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:10:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:11:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:11:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:12:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:12:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:13:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:13:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:14:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:14:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:15:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:15:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:16:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:16:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:17:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:17:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:18:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:18:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:19:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:19:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:20:01 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:20:01 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:21:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:21:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:22:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:22:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:23:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:23:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:24:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:24:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:25:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:25:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:26:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:26:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:27:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:27:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:28:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:28:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:29:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:29:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:30:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:30:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:31:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:31:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:32:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:32:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:33:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:33:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:34:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:34:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:35:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:35:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:36:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:36:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:37:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:37:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:38:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:38:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:39:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:39:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:40:02 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:40:02 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:41:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:41:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:42:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:42:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:43:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:43:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:44:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:44:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:45:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:45:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:46:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:46:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:47:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:47:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:48:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:48:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:49:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:49:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:50:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:50:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:51:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:51:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:52:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:52:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:53:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:53:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:54:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:54:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:55:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:55:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:56:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:56:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:57:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:57:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:58:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:58:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 21:59:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 21:59:03 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:00:03 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:00:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:01:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:01:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:02:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:02:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:03:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:03:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:04:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:04:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:05:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:05:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:06:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:06:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:07:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:07:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:08:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:08:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:09:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:09:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:10:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:10:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:11:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:11:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:12:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:12:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:13:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:13:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:14:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:14:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:15:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:15:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:16:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:16:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:17:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:17:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:18:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:18:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:19:04 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:19:04 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:20:05 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:20:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:21:05 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:21:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:22:05 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:22:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:23:05 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:23:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:24:05 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:24:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:25:05 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:25:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:26:05 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:26:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:27:05 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:27:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:28:05 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:28:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:29:05 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:29:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:30:05 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:30:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:31:05 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:31:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:32:05 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:32:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:33:05 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:33:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:34:05 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:34:05 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:35:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:35:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:36:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:36:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:37:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:37:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:38:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:38:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:39:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:39:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:40:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:40:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:41:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:41:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:42:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:42:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:43:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:43:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:44:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:44:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:45:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:45:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:46:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:46:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:47:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:47:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:48:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:48:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:49:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:49:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:50:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:50:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:51:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:51:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:52:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:52:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:53:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:53:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:54:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:54:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:55:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:55:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:56:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:56:06 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:57:06 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:57:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:58:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:58:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 22:59:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 22:59:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:00:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:00:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:01:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:01:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:02:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:02:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:03:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:03:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:04:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:04:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:05:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:05:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:06:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:06:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:07:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:07:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:08:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:08:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:09:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:09:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:10:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:10:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:11:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:11:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:12:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:12:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:13:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:13:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:14:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:14:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:15:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:15:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:16:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:16:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:17:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:17:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:18:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:18:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:19:07 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:19:07 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:20:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:20:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:21:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:21:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:22:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:22:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:23:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:23:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:24:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:24:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:25:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:25:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:26:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:26:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:27:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:27:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:28:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:28:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:29:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:29:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:30:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:30:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:31:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:31:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:32:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:32:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:33:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:33:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:34:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:34:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:35:08 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:35:08 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:38:16 : *ALERT* *ALERT* SERVER WAS REBOOTED *ALERT* * ALERT* 2017-05-11 23:38:16 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:38:16 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:39:16 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:39:16 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:40:16 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:40:16 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:41:16 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:41:16 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:42:16 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:42:16 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:43:16 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:43:16 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:44:16 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:44:16 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:45:16 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:45:16 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:46:16 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:46:16 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:47:16 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:47:16 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:48:16 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:48:16 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:49:16 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:49:16 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:50:16 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:50:16 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:51:17 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:51:17 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:52:17 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:52:17 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:53:17 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:53:17 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:54:17 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:54:17 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:55:17 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:55:17 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:56:17 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:56:17 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:57:17 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:57:17 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:58:17 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:58:17 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-11 23:59:17 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-11 23:59:17 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-12 00:00:17 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-12 00:00:17 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-12 00:01:17 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-12 00:01:17 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-12 00:02:17 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-12 00:02:17 : ATCS Harrisburg was found running properly by the AutoIt3 Script 2017-05-12 00:03:17 : ATCS Pittsburg was found running properly by the AutoIt3 Script 2017-05-12 00:03:17 : ATCS Harrisburg was found running properly by the AutoIt3 Script Thank you in advance for any and all help you guys can give me! Respectfully, James [font="Arial"]James D. Williams[/font] Link to comment Share on other sites More sharing options...
Subz Posted May 12, 2017 Share Posted May 12, 2017 (edited) Something like this maybe: #include <Date.au3> #include <File.au3> Local $aFileOpen, $sFileOpen = @ScriptDir & "\File.log" _FileReadToArray($sFileOpen, $aFileOpen, 4, " : ") For $i = UBound($aFileOpen) - 1 To 0 Step - 1 If _DateDiff("d", $aFileOpen[$i][0], _NowCalc()) > 30 And $aFileOpen[$i][1] = "ATCS Pittsburg was found running properly by the AutoIt3 Script" Then _FileWriteToLine($sFileOpen, $i + 1, "", True) If _DateDiff("d", $aFileOpen[$i][0], _NowCalc()) > 30 And $aFileOpen[$i][1] = "ATCS Harrisburg was found running properly by the AutoIt3 Script" Then _FileWriteToLine($sFileOpen, $i + 1, "", True) Next Edited May 12, 2017 by Subz Forgot to add > 30 days rsmedude 1 Link to comment Share on other sites More sharing options...
rsmedude Posted May 12, 2017 Author Share Posted May 12, 2017 Subz, Thanks for the reply. Unfortunately that appears to not have done anything. I even put a few "fake" entries that were older than 30 days into the file. Every time I run the script it doesn't appear to do anything to the "old" entries. Plus side is that nothing I added with putting this coding in messed up the original coding. if you want I can add a copy of what the coding looks like now as well as what the log file looks like. Respectfully, James [font="Arial"]James D. Williams[/font] Link to comment Share on other sites More sharing options...
Subz Posted May 12, 2017 Share Posted May 12, 2017 Hmm strange, I used your log text above and saved it to a file called file.log, I then replaced -05- to -02- and saved it, when I run the code, I'm only left with 11 entries: 2017-02-11 19:58:43 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-02-11 19:59:43 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-02-11 20:00:44 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-02-11 20:02:05 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-02-11 20:03:05 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-02-11 20:04:05 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-02-11 20:06:48 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-02-11 20:07:48 : *ALERT* ATCS Pittsburg was restarted by the AutoIt3 Script 2017-02-11 20:17:25 : *ALERT* *ALERT* SERVER WAS REBOOTED *ALERT* * ALERT* 2017-02-11 20:30:00 : *ALERT* *ALERT* SERVER WAS REBOOTED *ALERT* * ALERT* 2017-02-11 23:38:16 : *ALERT* *ALERT* SERVER WAS REBOOTED *ALERT* * ALERT* Please post your code and also the log file you're parsing and see if I get the same results. rsmedude 1 Link to comment Share on other sites More sharing options...
rsmedude Posted May 12, 2017 Author Share Posted May 12, 2017 hmmm ok let me look at this again. You are getting exactly what I want. That is I don't need to save the good entries past 30 days. I do however want to keep when the application crashes or when the entire server is rebooted. I only went back one month though. Let me change the entries in the log file to say March. [font="Arial"]James D. Williams[/font] Link to comment Share on other sites More sharing options...
rsmedude Posted May 12, 2017 Author Share Posted May 12, 2017 OK I tried it again. I did find I forgot to add the include for the date.au3 file. oops! Even though I did that and changed all the entries with a test file I am using I still can not get it to Delete. Here is a sample of what I have right now. I know some of it is erroneous since its just notes in the file so I remember what I am doing and where I am at. expandcollapse popup;- ATCS Running / Restart Check ;~ REV 5.0 ;- Written By: James D. Williams ;- Version Additions: ;- 05-11-2017 Ver 5.0 - Added NS Pittsburg to active service. ;- Added a 2 minute wait step at the begining of the script to allow for windows to regain all network drives. ;- Added a log entry to show if the entire computer was rebooted. ;- Added a version additions entry to the top of this version. ;- All versions from this point forward will have the "Version Additions" that were applied to it at the top as well as in the ;- "Version History". ;-TESTING CHANGES ;- Changed *ALERT* to *ERROR* for application restart entries. ;- Adding coding to delete good checks that are older that 30 days. (still not working getting help from AutoIt Commnity) #include <File.au3> #include <Date.au3> ;- Sleep(120000) ;sleep 120 seconds ;~ Open the logfile in write mode. Local $hFile = FileOpen(@ScriptDir & "\ATCS_UP_CHECK_REV5.0.log", 1) _FileWriteLog($hFile, "*ALERT* *ALERT* SERVER WAS REBOOTED *ALERT* * ALERT*") ; Write to the logfile passing the filehandle returned by FileOpen. FileClose($hFile) ; Close the filehandle to release the file. ;- START DELETE RECORDS COMMANDS Local $aFileOpen, $sFileOpen = @ScriptDir & "\ATCS_UP_CHECK_REV5.0.log" _FileReadToArray($sFileOpen, $aFileOpen, 4, " : ") For $i = UBound($aFileOpen) - 1 To 0 Step - 1 If _DateDiff("d", $aFileOpen[$i][0], _NowCalc()) > 30 And $aFileOpen[$i][1] = "ATCS Pittsburg was found running properly by the AutoIt3 Script" Then _FileWriteToLine($sFileOpen, $i + 1, "", True) If _DateDiff("d", $aFileOpen[$i][0], _NowCalc()) > 30 And $aFileOpen[$i][1] = "ATCS Harrisburg was found running properly by the AutoIt3 Script" Then _FileWriteToLine($sFileOpen, $i + 1, "", True) ;-FileClose($hFile) ; Close the filehandle to release the file. Next ;- END DELETE RECORDS COMMANDS While 1 ;Start Loop ;- START OF ATCS PITTSBURG If ProcessExists("atcsmon_PITTSBURG.exe") Then ;~ Open the logfile in write mode. Local $hFile = FileOpen(@ScriptDir & "\ATCS_UP_CHECK_REV5.0.log", 1) _FileWriteLog($hFile, "ATCS Pittsburg was found running properly by the AutoIt3 Script") ; Write to the logfile passing the filehandle returned by FileOpen. FileClose($hFile) ; Close the filehandle to release the file. Else ;If Process does not exist Run("C:\ATCS Monitor_PITTSBURG\atcsmon_PITTSBURG.exe", "", @SW_SHOWMINIMIZED) ;~ Open the logfile in write mode. Local $hFile = FileOpen(@ScriptDir & "\ATCS_UP_CHECK_REV5.0.log", 1) _FileWriteLog($hFile, "*ERROR* ATCS Pittsburg was restarted by the AutoIt3 Script") ; Write to the logfile passing the filehandle returned by FileOpen. FileClose($hFile) ; Close the filehandle to release the file. EndIf ;- END OF ATCS PITTSBURG ;- START OF ATCS HARRISBURG CHECK If ProcessExists("atcsmon_HARRISBURG.exe") Then ;~ Open the logfile in write mode. Local $hFile = FileOpen(@ScriptDir & "\ATCS_UP_CHECK_REV5.0.log", 1) _FileWriteLog($hFile, "ATCS Harrisburg was found running properly by the AutoIt3 Script") ; Write to the logfile passing the filehandle returned by FileOpen. FileClose($hFile) ; Close the filehandle to release the file. Else ;If Process does not exist Run("C:\ATCS Monitor_HARRISBURG\atcsmon_HARRISBURG.exe", "", @SW_SHOWMINIMIZED) ;~ Open the logfile in write mode. Local $hFile = FileOpen(@ScriptDir & "\ATCS_UP_CHECK_REV5.0.log", 1) _FileWriteLog($hFile, "*ERROR* ATCS Harrisburg was restarted by the AutoIt3 Script") ; Write to the logfile passing the filehandle returned by FileOpen. FileClose($hFile) ; Close the filehandle to release the file. EndIf ;- END OF ATCS HARRISBURG ;- START OF ATCS ALLENTOWN ;- END OF ATCS ALLENTOWN Sleep(60000) ;sleep 60 seconds WEnd ;Close Loop ;- Version History ;- 06-16-2015 Ver 1.0 - Initial write of script. ;- 06-17-2015 Ver 2.0 - Added Log file capability to script so that all activity is logged. ;- 06-18-2015 Ver 3.0 - Corrected eror in Log File excecution of the script. ;- 06-19-2015 Ver 3.5 - Further refinement of the Log File section of the script. ;- 05-10-2017 Ver 4.0 - Changed File name of ATCS from atcsmon.exe to atcsmon_harris.exe ;- Added Commenting out for setting up other territories. ;- 05-11-2017 Ver 5.0 - Added NS Pittsburg to active service. ;- Added a 2 minute wait step at the begining of the script to allow for windows to regain all network drives. ;- Added a log entry to show if the entire computer was rebooted. ;- Added a version additions entry to the top of this version. ;- All versions from this point forward will have the "Version Additions" that were applied to it at the top as well as in the ;- "Version History". [font="Arial"]James D. Williams[/font] Link to comment Share on other sites More sharing options...
Subz Posted May 12, 2017 Share Posted May 12, 2017 Got the same issue with your script, it turned out that the cursor should be positioned on a new line example below 2017-05-13 02:59:51 : *ALERT* *ALERT* SERVER WAS REBOOTED *ALERT* * ALERT* |<--Cursor When I was testing and I assume when you were testing the cursor was at the end of the last line 2017-05-13 02:59:51 : *ALERT* *ALERT* SERVER WAS REBOOTED *ALERT* * ALERT*|<--Cursor Which meant the _FileWriteLog was appending to the end of the last line and stopping the script from creating the Array, for example: 2017-05-12 00:03:17 : ATCS Harrisburg was found running properly by the AutoIt3 Script2017-05-13 03:06:36 : *ALERT* *ALERT* SERVER WAS REBOOTED *ALERT* * ALERT* Hope that made sense. rsmedude 1 Link to comment Share on other sites More sharing options...
rsmedude Posted May 12, 2017 Author Share Posted May 12, 2017 I follow what you are saying however I don't know how to fix that. I did not know or rather assumed the cursor placement didn't matter and was at the top of the file. I can move this portion of the script to the end of the loop so that its done after the log entry is made if that would help. I apologize for being a bit uninformed on how this stuff works. I write websites not programs. I am sort of learning on the fly as I go here. Respectfully, James [font="Arial"]James D. Williams[/font] Link to comment Share on other sites More sharing options...
Subz Posted May 12, 2017 Share Posted May 12, 2017 Sorry I might have confused things, the cursor is actually irrelevant, what I was trying to say is that the last line of your log file should always be a new line. I was just using the cursor as an example of new line By default your log file should always save like this, however you may have added or deleted something from the log and then inadvertently saved the log without adding the new line at the end. Anyway just add the new blank line at the end of your log and remove any lines that have doubled up like below and you should be good to go. 2017-05-12 00:03:17 : ATCS Harrisburg was found running properly by the AutoIt3 Script2017-05-13 03:06:36 : *ALERT* *ALERT* SERVER WAS REBOOTED *ALERT* * ALERT* rsmedude 1 Link to comment Share on other sites More sharing options...
rsmedude Posted May 12, 2017 Author Share Posted May 12, 2017 (edited) Subz, Ok I see what you are saying. I looked at the file again but could not figure out if any of those conditions were the issue. I was able to rule out the word wrap issue. So in the end here is what I did. 1. Saved the file as ATCS_UP_CHECK_REV5.0-BU.log 2. Ran the script again. 3. Had the file recreated by the script. 4. Changed some of the dates. 5. Ran the script again. Now it works. I think part of it might have been the extra lines I put in between the test "old" dates. I apologize for being a pain. Respectfully, James Edited May 12, 2017 by rsmedude incomplete sentence! [font="Arial"]James D. Williams[/font] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now