Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Write an app to start and kill another app periodically
Write an app to start and kill another app periodically [message #26388] Thu, 29 April 2010 17:33 Go to previous message
jpderyck is currently offline  jpderyck
Messages: 15
Registered: October 2008
Location: Belgium
Promising Member
Hello,
Under Linux, I would like to write a small application which can check for a hung application periodically. If it is hung, it should kill the process and restart the application.

The application to be checked periodically was written in u++: it reads a data module acquisition connected by usb every 10 seconds. It runs for +/- 2 months and then it crash. I suppose the problem is with the usb driver or the usb module itself. I made the same program reading a different module connected by rs232 port with no problem.

I know that I have to use command like 'killall app'
How to start this kind of command from an u++ gui program ?

The best should be if the small checking app was a linux service. I saw a service app sample for windows, but does anybody have sample for linux ?

best regards
Jean-Paul
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [BUG&FIX] LocalProcess can not be reused
Next Topic: String.Mid() and Unicode
Goto Forum:
  


Current Time: Fri Jun 07 08:44:44 CEST 2024

Total time taken to generate the page: 0.01090 seconds