0

I am trying to use some of the Process Library keywords that require the 'handle' as an arguement. E.g.: Is Process Running, Process Should Be Running

According to the documentation, "The handle can be the identifier returned by Start Process or an alias explicitly given to Start Process or Run Process." This is fine if you want to run a python script.

However, I want to use the 'Is Process Running' keyword on a process started by a using a python function in a keyword. E.g.:

Monitor Ipsec
    IsIpsecRunning

Where IsIpsecRunning is a python function. Any hints how to do this?

1 Answer 1

1

Like the documentation says, you must pass it an identifier from Start Process or Run Process. You can't use it for arbitrary python functions or processes.

Instead, you'll have to modify your IsIpsecRunning function to scan a list of running processes to see if the one you are interested is listed. Or, if it's the function that started some other process, it can save off the process id in a variable which you can pass to a function to determine if the process is running.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.