|
Posted by mike on January 18, 2005, 11:29 pm
Please log in for more thread options
Hello,
I am complete new to perl module so I will try to explain what I trying
to do as best I can. My webhosting company uses cpanel and there are lots of
pre-installed perl script that are on the server which I don't have direct
access to but we can use them by just placing the path to where the scripts
are. Right now I have just prepared on how to setup the program to run of
the a server which have access to but I don't know how to test it out to see
if it can work.
Any help would be appreciated.
thanks
#!/usr/bin/perl
package Cpanel::CgiFix;
use strict;
use Carp;
use vars qw(@ISA @EXPORT $VERSION);
require Exporter;
require DynaLoader;
@ISA = qw(Exporter DynaLoader);
@EXPORT = qw(FixCgi_init FixCgi_findandfix);
$VERSION = '1.0';
sub FixCgi_init {
return;
}
sub FixCgi_findandfix {
my $homedir = $Cpanel::homedir;
#import homedir .. see Cpanel.pm
if (-e "/usr/bin/find") {
open(FIND,"-|") ||
exec('/usr/bin/find',"$homedir/public_html",'-name','*.cgi','-or','-name','*
..pl');
while() {
s/n//g;
my $file = $_;
open(SCRIPT,"$file");
my $firstline =
|
|
Posted by Terrence Brannon on January 19, 2005, 1:06 am
Please log in for more thread options
> Hello,
> I am complete new to perl module so I will try to explain what I trying
> to do as best I can. My webhosting company uses cpanel and there are lots of
> pre-installed perl script that are on the server which I don't have direct
> access to but we can use them by just placing the path to where the scripts
> are.
I would recommend you use a more flexible webhosting company. I do all
my hosting at hcoop.net
> Right now I have just prepared on how to setup the program to run of
> the a server which have access to but I don't know how to test it
> out to see if it can work.
Do you mean to say that your webhosting company does not provide a
HOWTO for this common activity?
--
Carter's Compass: I know I'm on the right track when,
by deleting something, I'm adding functionality.
|
|
Posted by mike on January 19, 2005, 4:28 am
Please log in for more thread options
>
> I would recommend you use a more flexible webhosting company. I do all
> my hosting at hcoop.net
> Do you mean to say that your webhosting company does not provide a
> HOWTO for this common activity?
Unfortunately no that is why I am asking.
thanks
|
|
Posted by Jim Keenan on January 20, 2005, 12:33 am
Please log in for more thread options mike wrote:
> Hello,
> I am complete new to perl module so I will try to explain what I trying
> to do as best I can. My webhosting company uses cpanel and there are lots of
> pre-installed perl script that are on the server which I don't have direct
> access to but we can use them by just placing the path to where the scripts
> are. Right now I have just prepared on how to setup the program to run of
> the a server which have access to but I don't know how to test it out to see
> if it can work.
> Any help would be appreciated.
> thanks
>
> #!/usr/bin/perl
> package Cpanel::CgiFix;
The Comprehensive Perl Archive Network (CPAN) shows no module known as
Cpanel::CgiFix. That leads me to suspect that it is a proprietary
product of a particular company: http://cpanel.net/index.html
If so, we would not be able to help you here; you would have to contact
cpanel.net.
jimk
|
| Similar Threads | Posted | | Adding installable script to a perl module distro? | August 30, 2005, 7:24 pm |
| I want to learn something about HTML parser. | December 8, 2005, 12:12 am |
| Executables out of perl script? | April 20, 2006, 7:30 am |
| Executables out of perl script? | April 20, 2006, 7:30 am |
| Executables out of perl script? | April 20, 2006, 7:56 am |
| Help Eventlog Perl Script | May 28, 2007, 11:27 am |
| How to invoke a CGI script within a Perl program ? | May 6, 2005, 12:35 pm |
| getting output of telnet from perl script | April 10, 2006, 5:35 am |
| Newbie: Bundling Perl script and modules in a Mac OS X app? | May 17, 2005, 5:44 pm |
| "Devel::DProf" on a PERL script uses "Test::More" | December 5, 2005, 5:36 pm |
|