NEWBIE : Detect and restart closed apps.



Hi,

Forgive me if this not the right place to post.

We have a server running RHEL4 and 3 remote Thin Clients on ethernet.
Thin Clients have only the X server running (no desktop-no xdmcp stuff).

Say that on the server we start the Xclock app (as an example) for display
on each ThinClient.
$ Xclock -update 1 -display <IP address of client_1> &
$ Xclock -update 1 -display <IP address of client_2> &
$ Xclock -update 1 -display <IP address of client_3> &

ps output shows 3 Xclock process then 2 when one user close the app.
This is fine but we cannot tell which user has close the app.

We hope to write a monitoring program (in C preferably) to detect which Thin
Client user has
close the Xclock app. in order to restart it as we need the application to
run continuously.

How to solve this ? Pointers ?

TIA

JBA


.