Status of a wine process

Questions about Wine on Linux
Locked
RMCampos
Newbie
Newbie
Posts: 1
Joined: Tue Mar 12, 2013 8:50 am

Status of a wine process

Post by RMCampos »

Hello everyone!

Someone can say if is possible to check the status of a wine process?

The case: I have a program called MyProgram.exe, and him should be running all the time. But, some times it's stop, by memory problem, or something else..

What I need: Write a script (languages: C,C++,Python, or Shell) that check the status and print in the screen: "MyProgram.exe is running" or "MyProgram.exe is stoped". The most important is to know when he is stoped by any problem, because then I need to restart the program.

Thank you in advance.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Status of a wine process

Post by dimesio »

You can check the status of Wine processes the same way you would check the status of any native process.
Locked