Take Action on Results in Remote Command Output Log

BatchPatch Forums Home Forums BatchPatch Support Forum Take Action on Results in Remote Command Output Log

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14076
    MTRankin
    Participant

    Good 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,
    Mike

    #14077
    doug
    Moderator

    Hey 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

    #14078
    MTRankin
    Participant

    That 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,
    Mike

    #14079
    doug
    Moderator

    OK 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.

    #14080
    MTRankin
    Participant

    Thanks again Doug

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.