Jump to content
OMRON Forums

How can read running status of C-applications


illop
 Share

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

For background C applications, there is no "easy" way to know. You can technically issue the "top" command to the system shell:

 

system "top"

 

and then parse the response to see if your program is listed (e.g. capp1.out). Top is a Linux command that shows running processes:

 

http://www.tecmint.com/12-top-command-examples-in-linux/

 

There might be a cuter Linux command out there, but I am not an expert on it.

 

It is much easier, though, to put a global variable that increments as the program runs, for example, and then just check if that variable is incrementing to verify that the program is running.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...