Eurocardsharing Forum
Satellite TV for PC
Twitter

Go Back   Eurocardsharing Forum > Other Options > CardSharing Chat/News

Reply
 
Thread Tools Display Modes
script to atuomatic run CCcam
Old
  (#1)

org300
Banned
 
org300's Avatar
 
Offline
Posts: 3

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 2
Magic: 1 / 6
Experience: 10%

Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jun 2009
script to atuomatic run CCcam - 05-June-2009, 04:11


   
Reply With Quote
Sponsored Links
www.satshop.tv
Old
  (#2)

ivanovh
Super Moderator
 
ivanovh's Avatar
 
Offline
Posts: 6,933

Level: 57 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 849 / 1416
Magic: 2311 / 13873
Experience: 66%

Thanks: 870
Thanked 2,629 Times in 1,107 Posts
Join Date: Nov 2006
Location: Eindhoven
Age: 46
05-June-2009, 06:38







---------------------------------------------------
Dreambox 8000 HD PVR
Dreambox 7020si
Dual Xeon 3.4Ghz Cardserver in Raid 5 , Debian 5.1, CCcam 2.1.4
Moteck 2100A


Loewe Individual Compose 40"

Iphone 3G S 32Gb [3.1.3]

---------------------------------------------------
If you are happy with the reply,
show your appreciation press "thanks", dont be shy!

   
Reply With Quote
Old
  (#3)

Orca74
Junior Member
 
Orca74's Avatar
 
Offline
Posts: 3

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 2
Magic: 1 / 10
Experience: 10%

Thanks: 1
Thanked 0 Times in 0 Posts
Join Date: Nov 2008
Age: 35
05-June-2009, 07:36


Hi,
i have a Telnet-Check Script running on my Debian Server with cron every 2 minutes.
If CCCam is not responding, it will be restartet. It logs the date & time on restart.

Here's the scipt:

Code:
#!/bin/sh
CHECKNAME="CCCam_test.txt"
IP="127.0.0.1"
PORT="16000"
echo info|nc $IP $PORT >>/tmp/$CHECKNAME
set $(ls -s /tmp/$CHECKNAME)
if [ "$1" = "0" ];
then
echo "CCcam is not running, Restarting..."
  echo `date` CCCam Neustart >> /var/log/CCCam_Reset.txt
  sleep 2
  /etc/init.d/CCCam stop 2>/dev/null >/dev/null &
  sleep 2
  killall -9 CCCam.x86 2>/dev/null >/dev/null &
  sleep 2
  /etc/init.d/CCCam start 2>/dev/null >/dev/null &
  sleep 3


#/etc/init.d/CCCam restart
else
echo "CCcam is running"
fi
rm /tmp/$CHECKNAME
exit
Greetz Orca74

   
Reply With Quote
Reply

Tags
atuomatic, cccam, script


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
bug : script cccam check hd user Cccam 0 16-May-2009 05:11
cccam startup script k0103707 Cccam 4 13-May-2009 13:01
GBOX CCCAM Script mumbua Setting Dream 6 16-October-2008 00:46
help, i need script for CCcam opensus 10.3 ? hayalet54 Cccam 1 13-November-2007 22:10





Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.