RLLbad

Member
Sep 30, 2003
9
0
151
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:
 

RLLbad

Member
Sep 30, 2003
9
0
151
I found the perl one. Can anyone help me set it up? I cant get it towork

cPanel.net Support Ticket Number:
 

Freexxxmen

Member
Jun 11, 2003
8
0
151
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:
 

asmithjr

Well-Known Member
Jun 13, 2003
514
6
168
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:
 

RLLbad

Member
Sep 30, 2003
9
0
151
I cannot get the perl automation script to work. I dont know how to set it up.

cPanel.net Support Ticket Number:
 

asmithjr

Well-Known Member
Jun 13, 2003
514
6
168
I missed something here. Where is the Perl automation script?

cPanel.net Support Ticket Number:
 

perlchild

Well-Known Member
Sep 1, 2002
279
0
166
Originally posted by asmithjr
I missed something here. Where is the Perl automation script?

cPanel.net Support Ticket Number:
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:
 
Last edited:

RLLbad

Member
Sep 30, 2003
9
0
151
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 = '[email protected]';
$contactfrom = '[email protected]';
# 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:
 

perlchild

Well-Known Member
Sep 1, 2002
279
0
166
Originally posted by RLLbad

PHP:
$whm->{accesshash} ='681ff5ab6e5dca980e7fe13713acd1bb';
cPanel.net Support Ticket Number:
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:
 

perlchild

Well-Known Member
Sep 1, 2002
279
0
166
Originally posted by RLLbad
I got this script from WHM.

cPanel.net Support Ticket Number:
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:
 

RLLbad

Member
Sep 30, 2003
9
0
151
Is there any way I can talk to you personally or something?

cPanel.net Support Ticket Number: