Register

Welcome to the RDI-Board Community.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


Donate Now Goal amount for this month: 100 EUR, Received: 100 EUR (100%)
Donate to support this site...

Results 1 to 3 of 3
  1. #1
    Faithful Member Expert
    Join Date
    Sep 2008
    Location
    casa cu flori, strada sperantei, la etaj...
    Posts
    1,361
    Posts Thanks / Likes

    Default Script verificare CCcam functional sau nu...

    Salutare
    Am tot incercat sa pun un script in serverul ubuntu (v 10.04) pt verificarea cccam-ului si repornirea acestuia in caz ca se va opri. Din pacate logul imi da mesajul " /bin/sh: /bin/./checkcccam.sh: not found "
    Scriptul se numeste checkcccam.sh si se afla in /bin. Are atribut 755 si arata asa :

    Code:
    #!/bin/sh
    if ps x |grep -v grep |grep -c CCcam.x86 >/dev/null
    then
    echo "cccam... ok"
    else
    date=`date`
    echo "Restarting cccam : $date" >> /tmp/checkcccam.log
    echo "cccam... restarting"
    /var/bin/CCcam.x86 -dv >>/tmp/log.txt &
    fi
    (dupa tutorialul lui Johnny29)

    Oare unde gresesc?
    Do you want to see a picture of a beautiful person? Hold up a mirror...

  2. #2
    Faithful Member Expert
    Join Date
    Sep 2008
    Location
    casa cu flori, strada sperantei, la etaj...
    Posts
    1,361
    Posts Thanks / Likes

    Default

    Intre timp am gasit raspunsul la intrebare, anume: eu am accesat linuxul cu Fzilla, am creat fisierul checkcccam.sh, l-am uploadat si i-am dat atr 755. Dupa care am setat crontab. Se pare ca nu e ok asa... Nu a mers.
    Am intrat cu putty si cu nano am facut fisierul checkcccam.sh, chmod 755 , setare crontab si ... totul a fost ok.
    Asta in caz ca mai are cineva aceasta problema...

    Have a wild night
    Do you want to see a picture of a beautiful person? Hold up a mirror...

  3. #3
    Unemployed Expert
    RDI - Board Default Avatar

    Join Date
    Jan 1970
    Location
    BeneluX
    Posts
    1,329
    Posts Thanks / Likes

    Default

    Quote Originally Posted by popamare View Post
    Intre timp am gasit raspunsul la intrebare, anume: eu am accesat linuxul cu Fzilla, am creat fisierul checkcccam.sh, l-am uploadat si i-am dat atr 755. Dupa care am setat crontab. Se pare ca nu e ok asa... Nu a mers.
    Am intrat cu putty si cu nano am facut fisierul checkcccam.sh, chmod 755 , setare crontab si ... totul a fost ok.
    Asta in caz ca mai are cineva aceasta problema...

    Have a wild night
    In linux trebuie sa editezi crontab manual ( cu vi, nano sau alt editor din el), nu merge prin ftp
    baFTA
    un server câteva receivere si ceva pasiune...

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Back to Top