I have a batch file that is pulling information from a remote server and showing information for one of my services.
The batch I am using is as follows:
tasklist /s TESTING1 /u TESTSvc /p T$ST1ng /fi "services eq test"
When I run the batch, I get information back but need to create a Regex that will let me know if the memory is greater than a certain amount. I am new with Regex and need to figure out how to write this.
The result of the batch is as follows:
Image Name PID Session Name Session# Mem Usage
========================= ======== ================ =========== ============
tomcat9.exe 5628 Services 0 1,455,204 K
I have looked at Regex for number check below a value, Regex for dollar amount greater than $500, Extracting string from logs with regex in pig script.
I have tried the recommend answers from each and have not gotten the results needed.
The memory for the service can go higher than what is shown. If it goes higher than 1.8gb the service starts to not respond properly.