I'm a PHP person trying to use the following PERL script, I have never used a PERL script:
http://sourceforge.net/projects/getlive/
I've installed the PHP Perl mod and can run a simple 'hello world' Perl script as:
print "Hello from PHP!<br />";
$perl = new Perl();
$perl->require("test1.pl")
; ////print "Hello from perl! "
print "Bye";
I've uploaded the GetLive.pl into "/usr/local/bin/GetLive.pl
" and my config file to "home/myuser/.getliveconfi
g"
My config file is the following:
UserName = myemail
Password = pswd
Domain = hotmail.com
FetchOnlyUnread = Yes
Folder = Inbox
Folder = Junk
MarkRead = Yes
Downloaded = /mail/mydomain.com/hotmail
/downloade
d
Processor = /usr/sbin/sendmail -i hotmail
However, when I run the following page:
$perl = new Perl();
$perl->require("/usr/local
/bin/GetLi
ve.pl --config-file /home/myuser/.getliveconfi
g");
I get:
Fatal error: Uncaught exception 'PerlException' with message '[perl] require error: Can't locate /usr/local/bin/GetLive.pl --config-file /home/myuser/.getliveconfi
g in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-
linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5
.8.8/i686-
linux /usr/lib/perl5/site_perl/5
.8.8 /usr/lib/perl5/site_perl/5
.8.7 /usr/lib/perl5/site_perl/5
.8.6 /usr/lib/perl5/site_perl/5
.8.5 /usr/lib/perl5/site_perl .) at (eval 3) line 1 during global destruction. ' in /home/myuser/public_html/G
etLive/ind
ex.php:12 Stack trace: #0 /home/myuser/public_html/G
etLive/ind
ex.php(12)
: Perl->require('/usr/local/
bin/...') #1 {main} thrown in /home/myuser/public_html/G
etLive/ind
ex.php on line 12
I've never done anything like this before and am trying to get my hotmail mail either forwared to my gmail or at least processed by my mail server. I have root access and cPanel/WHM and have not installed the GetLive RPM, I've just uploaded the files GetLive.pl, SmtpAuthForward.pl, SmtpForward.pl, my config file and the php page that calls the .pl. Once I have this working I was going to build a cron for the php page, unless I can just cron GetLive.pl --config-file /home/myuser/.getliveconfi
g.
Again, I'm very new to this and have tried many things to get it to work so step by step instructions would be very helpful.