(imported topic written by wnolan91)
I have created the below RP that checks the log files in the BigFix Logs location and check for “the file with yesterdays date .bkg” The way I have come up with works but I’m looking for a better way for the Month if possible. Any help would be great. The idea behind this is that a well working machine would never have more then one log file barring a new machine. It should rarely have 2 days of bkg files, which would be simple to add, but I don’t like the why I have to come up with the Month. Thanks Bill
if Exist file (((pathname of parent folder of regapp “besclient.exe”) & “__BESData__Global\Logs”) & ((first 4 of following text of position 12 of (now as string)) & (if ((first 3 of following text of position 8 of (now as string)) = “Jan”) then “01” else if ((first 3 of following text of position 8 of (now as string)) = “Feb”) then “02” else (if ((first 3 of following text of position 8 of (now as string)) = “Mar”) then “03” else (if ((first 3 of following text of position 8 of (now as string)) = “Apr”) then “04” else (if ((first 3 of following text of position 8 of (now as string)) = “May”) then “05” else (if ((first 3 of following text of position 8 of (now as string)) = “Jun”) then “06” else (if ((first 3 of following text of position 8 of (now as string)) = “Jul”) then “07” else (if ((first 3 of following text of position 8 of (now as string)) = “Aug”) then “08” else (if ((first 3 of following text of position 8 of (now as string)) = “Sep”) then “09” else (if ((first 3 of following text of position 8 of (now as string)) = “Oct”) then “10” else (if ((first 3 of following text of position 8 of (now as string)) = “Nov”) then “11” else (if ((first 3 of following text of position 8 of (now as string)) = “Dec”) then “12” else “other”))))))))))) & ((first 2 of following text of position 5 of (now as string) as integer - 1) as string) & “.bkg”) as string) Then “Possible problem with BESClient” Else “Client Working Well”