Re: NEWBIE : Detect and restart closed apps.



Great, that's what we were looking for. Have to improve our sripting skills
:-)
Many thanks.

JBA

"Greg Hackney" <hackney@xxxxxxxxxx> wrote in message
news:kyM2h.4276$B31.1632@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Jacques Basteyns wrote:

This works when you have 3 users issuing each the xclock start command.
But it fails if only one user(at the server) is issuing it 3 time (to
display xclock on each ThinClient)
as if we had USERS="UniqueUser" in above script. That's the problem we
try
to solve.
Anyway, thanks for your interest.


#!/bin/sh

Display="192.168.1.5:0 192.168.1.6:0 192.168.1.7:0"
SLEEPTIME=600

while true
do
for i in $Display
do
(ps -wfp `pgrep Xclock` | grep $i) > /dev/null 2>&1
if [ $? -ne 0 ]
then
echo run program to start Xclock on DISPLAY $i
fi
done
sleep $SLEEPTIME
done






.



Relevant Pages

  • Re: NEWBIE : Detect and restart closed apps.
    ... But it fails if only one useris issuing it 3 time (to ... display xclock on each ThinClient) ...
    (alt.os.linux.redhat)
  • RE: MySQL/PHPMyAdmin on FC3 Connection Problem
    ... // You can disable a server config entry by setting host to ''. ... MySQL server ... MySQL control user settings ... table to describe the display fields ...
    (Fedora)
  • not prettey! Display problem
    ... X.Org X server -- core server ... X.Org X server -- AceCad input driver ... X.Org X server -- APM display driver ...
    (Debian-User)
  • Re: not prettey! Display problem
    ... when I start a KDE-Session I get several flashing pixels on the upper edge of my display, that leave holes in windows that are dragged accross them. ... X.Org X server -- core server ... X.Org X server -- AceCad input driver ... X.Org X server -- APM display driver ...
    (Debian-User)
  • Re: Show-stopper Exchange problem
    ... we want the display name to reflect the name of the ... With pretty much any regular old SMTP server, ... client running in smtp mode to set your display name on outbound email, ...
    (microsoft.public.windows.server.sbs)