Register
Results 1 to 3 of 3
  1. #1
    Newbie
    Join Date
    Jun 2012
    Posts
    3
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default Help with a script (change cccam.cfg from the blue panel)

    Hi!
    I want to be able to change CCcam.cfg file from the blue panel. To achieve this I have placed two scripts in the /usr/script directory:

    One is called 1.sh and it goes like this:

    Code:
    #!/bin/sh
    
    rm /etc/CCcam.cfg
    cp /etc/CCcam.cfg.1 /etc/CCcam.cfg
    The other is called 2.sh and it's basically the same (only the source file changes):

    Code:
    #!/bin/sh
    
    rm /etc/CCcam.cfg
    cp /etc/CCcam.cfg.2 /etc/CCcam.cfg
    I gave both of them 755 permissions.

    Problem is when I go to the blue panel -> utilities -> user scripts and launch one of the scripts it says:

    Code:
    /bin/sh /usr/script/1_user.sh Not Found!
    exevution halted
    I can't understand what I'm doing wrong. Any help?
    Thanks!!

  2. #2
    Newbie
    Join Date
    Jun 2012
    Posts
    3
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Little correction, the scripts are actually named 1_user.sh and 2_user.sh

    Thanks!

  3. #3
    Newbie
    Join Date
    Jun 2012
    Posts
    3
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Solved using the CCcamswitch plugin.
    But I'm still interested in why my scripts wouldn't work, if anyone has any ideas!

 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.