+2 votes

hello, on the doc, on https://docs.godotengine.org/en/stable/classes/class_os.html?#class-os-method-execute , says that you can use the pid to monitor the process, my question is, monitor what and how?

enter image description here

is there a way to get, idk, memory use of those procces or if they exist? because i didnt found it

im trying to use ffmpeg but it would be super uderful to know when the process ends to kill it and delete the temp files

in Engine by (14 points)

1 Answer

+1 vote

kill is the only operation available to work directly with PIDs for now.

So the option would be to use the execute method with commands like tasklist (Windows) or ps (Unix) to query if the pid is available or if more control is needed, create utility scripts in other programming language and call it with execute.

by (92 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.