BatchPatch Forums Home › Forums › BatchPatch Support Forum › Take Action on Results in Remote Command Output Log
- This topic has 4 replies, 2 voices, and was last updated 2 years, 2 months ago by MTRankin.
- 
		AuthorPosts
- 
		
			
				
August 4, 2023 at 8:32 am #14076MTRankinParticipantGood Day, What I am trying to do is determine when TiWorker.exe process completes on the server after a reboot and then take action. I am currently trying in Remote Command 3 Powershell $process = Get-Process TiWorker -ErrorAction SilentlyContinue; if ($process -eq $null) { Write-Output “1” } else { Write-Output “0” }. The Remote Command Output Log, does show a 0 or 1 depending on the process, but I do not see a way of reading and taking action on the log results. It does not appear that the Actions command Check if process is running is available when creating a Job Queue. It is important for us to know when the server has come completely up and is available to log on to. Any help would you can provide would be greatly appreciated. Thank You, 
 MikeAugust 4, 2023 at 12:56 pm #14077dougModeratorHey Mike – I’m not sure what happened, but we were supposed to have a job queue item to check if a process is running with conditional branching/goto. However, somehow it didn’t get published, so we will plan on getting that into the next version. In the meantime, instead of having your script just writing output of 0 or 1, have it actually return 0 or 1. Then you can use the job queue items “If previous action failed/errored (returned non-0), goto label:X” and “If previous action was successful (returned 0), goto label:X” -Doug August 4, 2023 at 1:15 pm #14078MTRankinParticipantThat did the trick Doug. Thanks again for your help. Is there a mailing list I can get on to know of the latest updates and stuff? Thank You, 
 MikeAugust 4, 2023 at 1:52 pm #14079dougModeratorOK good. I’m glad that worked. There’s no mailing list. You can see the changelog in ‘Help > Check for updates’, and when a new update is released BP will notify you unless you disable the check for updates at startup in the BP settings. If you disable it then you’d have to manually check using ‘Help > Check for updates’. Lastly, you can also follow us on FB (and still Twitter for the time being, at least). Links for those are also on the Help menu. August 4, 2023 at 3:53 pm #14080MTRankinParticipantThanks again Doug 
- 
		AuthorPosts
- You must be logged in to reply to this topic.
