hi pls hellp
hi pls hellp
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
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
Re: hi pls hellp
So what does it do?
Re: hi pls hellp
HI
I WANT script to monitor programs in the case of stop re-run
I WANT script to monitor programs in the case of stop re-run
Re: hi pls hellp
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!
Re: hi pls hellp
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
i add on ubantu scripts for monitor programs in the case of stop re-run
i add same this scripts on centos not work
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
hi pls hellp
Repeating the same non-information will not get a different response.
Re: hi pls hellp
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.
Re: hi pls hellp
hi
Does not show any error ..
....
I want a way
If a program stops - works automatically
Does not show any error ..
....
I want a way
If a program stops - works automatically
Re: hi pls hellp
[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
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
Re: hi pls hellp
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
#################################################################
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