Re: NEWBIE : Detect and restart closed apps.
- From: "Jacques Basteyns" <jacques.j.basteyns@xxxxxxxxxx>
- Date: Sat, 4 Nov 2006 18:03:22 +0100
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:try
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
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
.
- References:
- NEWBIE : Detect and restart closed apps.
- From: Jacques Basteyns
- Re: NEWBIE : Detect and restart closed apps.
- From: Greg Hackney
- Re: NEWBIE : Detect and restart closed apps.
- From: Jacques Basteyns
- Re: NEWBIE : Detect and restart closed apps.
- From: Greg Hackney
- NEWBIE : Detect and restart closed apps.
- Prev by Date: Re: Hello world program loads unused Oracle SO libraries
- Next by Date: RHEL 3 AS on Dell 2950
- Previous by thread: Re: NEWBIE : Detect and restart closed apps.
- Next by thread: External RAID, GFS
- Index(es):
Relevant Pages
|
|