hi pls hellp

If it doesn't fit in another category, ask it here.
Post Reply
karmw
Posts: 6
Joined: 2013/04/15 23:49:07

hi pls hellp

Post by karmw » 2013/04/16 08:55:06

i add new centos 5
But got problem is

I used a ubantu Previously
and i used a - script to monitor programs in the case of stop re-run

Example
Use this script

....................................................................
if ps x |grep -v grep |grep -c cccam >/dev/null
then
echo "cccam... ok"
else
echo "cccam... restarting"
/bin/cccam -C /var/etc/CCcam.cfg &
printf " \n `date +%d/%m/%Y-%Hh%Mm%Ss` : CCcam Restarted\n" >> /var/bin/Check_CCcam.txt
fi
.................................................................
He worked in ubantu

But now in centos not work

please hellp

User avatar
TrevorH
Forum Moderator
Posts: 26927
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: hi pls hellp

Post by TrevorH » 2013/04/16 10:19:38

So what does it do?

karmw
Posts: 6
Joined: 2013/04/15 23:49:07

Re: hi pls hellp

Post by karmw » 2013/04/16 16:44:34

HI

I WANT script to monitor programs in the case of stop re-run

User avatar
TrevorH
Forum Moderator
Posts: 26927
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: hi pls hellp

Post by TrevorH » 2013/04/16 16:51:45

No, I mean that just saying "But now in centos not work" does not tell us anything even remotely useful about why it does not work. How about some error messages or the output of your script? I can see by reading it what you want it to do. I cannot see your screen to see what goes wrong!

karmw
Posts: 6
Joined: 2013/04/15 23:49:07

Re: hi pls hellp

Post by karmw » 2013/04/16 17:10:25

i have program sharing name this program cccam + oscam this progarm bad stop Automatic

i add on ubantu scripts for monitor programs in the case of stop re-run

i add same this scripts on centos not work

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

hi pls hellp

Post by gerald_clark » 2013/04/16 17:19:46

Repeating the same non-information will not get a different response.

User avatar
TrevorH
Forum Moderator
Posts: 26927
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: hi pls hellp

Post by TrevorH » 2013/04/16 18:27:46

Yes, we know that. You need to tell us [u]how[/u] it is not working! You need to get error messages. You need to understand what the script does and then you can run it line by line manually and find out where it is going wrong. Just posting continually "it does not work" does not tell us [u]anything[/u] about what is going wrong.

karmw
Posts: 6
Joined: 2013/04/15 23:49:07

Re: hi pls hellp

Post by karmw » 2013/04/16 18:55:20

hi
Does not show any error ..
....

I want a way
If a program stops - works automatically

karmw
Posts: 6
Joined: 2013/04/15 23:49:07

Re: hi pls hellp

Post by karmw » 2013/04/16 19:02:40

[quote]
TrevorH wrote:
Yes, we know that. You need to tell us [u]how[/u] it is not working! You need to get error messages. You need to understand what the script does and then you can run it line by line manually and find out where it is going wrong. Just posting continually "it does not work" does not tell us [u]anything[/u] about what is going wrong.[/quote]

thnx you

hi
Does not show any error ..
....

I want a way
If a program stops - works automatically
on centos 64 bit

karmw
Posts: 6
Joined: 2013/04/15 23:49:07

Re: hi pls hellp

Post by karmw » 2013/04/16 19:15:01

i have this script
#################################################################
if ps x |grep -v grep |grep -c cccam >/dev/null
then
echo "cccam... ok"
else
echo "cccam... restarting"
/bin/cccam -C /var/etc/CCcam.cfg &
printf " \n `date +%d/%m/%Y-%Hh%Mm%Ss` : CCcam Restarted\n" >> /var/bin/Check_CCcam.txt
fi
#################################################################
work good on ubantu

not work on centos

----
Does not show any error .. on centos
....

I want a way
If a program stops - works automatically
on centos 64 bit

Post Reply

Return to “CentOS 5 - Miscellaneous Questions”