The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cpanel Automation Script

Discussion in 'General Discussion' started by RLLbad, Oct 2, 2003.

  1. RLLbad

    RLLbad Member

    Joined:
    Sep 30, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Ive been looking for one for three monthes now. Where can I find a script to do automation in cpanel?

    cPanel.net Support Ticket Number:
     
  2. RLLbad

    RLLbad Member

    Joined:
    Sep 30, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I found the perl one. Can anyone help me set it up? I cant get it towork

    cPanel.net Support Ticket Number:
     
  3. Freexxxmen

    Freexxxmen Member

    Joined:
    Jun 11, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    What automation does it do ... Im trying to figure out how to mv log files to a resellers folder and give them ownership but only to files they are their subaccts should own not everyones logs

    cPanel.net Support Ticket Number:
     
  4. RLLbad

    RLLbad Member

    Joined:
    Sep 30, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Please help someone

    cPanel.net Support Ticket Number:
     
  5. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    what are you talking about

    What is a cpanel automation script? I mean what are you asking for help with?

    cPanel.net Support Ticket Number:
     
  6. RLLbad

    RLLbad Member

    Joined:
    Sep 30, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I cannot get the perl automation script to work. I dont know how to set it up.

    cPanel.net Support Ticket Number:
     
  7. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    I missed something here. Where is the Perl automation script?

    cPanel.net Support Ticket Number:
     
  8. perlchild

    perlchild Well-Known Member

    Joined:
    Sep 1, 2002
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    I think this person means they installed perlbill a billing/install automation script and want help, but for free, they didn't ask the perlbill company for an install, and didn't post this in the ads section where they might already have bids for their business.

    cPanel.net Support Ticket Number:
     
    #8 perlchild, Oct 9, 2003
    Last edited: Oct 9, 2003
  9. RLLbad

    RLLbad Member

    Joined:
    Sep 30, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    uh please look at the above posts before you post yourself.

    Second I cant get this script to work

    PHP:
    #!/usr/bin/perl

    BEGIN {
            
    push (@INC,"/rllbad2/local/cpanel");
            
    push(@INC,"..");
    }


    use 
    Cpanel::Accounting;
    my($whm) = Cpanel::Accounting->new;

    @
    REQUIREDFIELDS = ("email","domain","password","company","name","address","city","state","phone","payment_method");

    $contactemail 'accounts@kamk.com';
    $contactfrom 'accounts@kamk.com';
    # WHM ACCESS INFO
    $whm->{user} = 'root';
    $whm->{accesshash} ='681ff5ab6e5dca980e7fe13713acd1bb';
    $whm->{host} = 'localhost';
    $whm->{usessl} = 1;

    # VERIFCATION/CC PROCESSOR
    $processor 'generic';
    require 
    "processors/$processor.pl";

    return(
    $whm);]
    cPanel.net Support Ticket Number:
     
  10. perlchild

    perlchild Well-Known Member

    Joined:
    Sep 1, 2002
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    Your access hash looks wrong, did you get it from cpanel?(that looks like a md5 password hash, not a cpanel-generated access hash)

    cPanel.net Support Ticket Number:
     
  11. RLLbad

    RLLbad Member

    Joined:
    Sep 30, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I got this script from WHM.

    cPanel.net Support Ticket Number:
     
  12. perlchild

    perlchild Well-Known Member

    Joined:
    Sep 1, 2002
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    Well unless you didn't copy the whole hash(which would make sense, this is, after all, a public forum) it's WAYYY too short, so you might want to go into the proper section of whm, and copy the whole thing, my ash was around 512 characters if I remember

    cPanel.net Support Ticket Number:
     
  13. RLLbad

    RLLbad Member

    Joined:
    Sep 30, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Is there any way I can talk to you personally or something?

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page