Perl path and other possible errors

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
svankamon
-


Joined: 01 Apr 2007
Posts: 148
Location: Chesterfield UK

PostPosted: Mon Oct 01, 2007 12:22 pm    Post subject: Perl path and other possible errors Reply with quote

Hi, id just like to ask a few questions to ne of you perl experts out there.

Firstly scripts require that you name the PATH to perl. Is the below correct.:

#!\C:\Perl\bin\perl

Should it begin with a slash?, is there a slash between C: and Perl.?

I have a downloader script that requires use of a mail server to mail files automatically to subscribers/users.

The admin works ok and the script seems to be fine but it doesnt send the email.

Here are a few details.?

Path to perl =
#!/C:/Perl/bin/perl

Paths to html/image/and cgi files =
$scriptpath="http://mydomain/cgi-bin/autoresponder/ar.cgi";

$htmlpath="http://cartouche.org.uk/html";

$imgpath="http://cartouche.org.uk/html/img";

Path to mailserver. (hMailServer) =

$mailprog="C:/Program Files/hMailServer/Bin/";

Can anyone sugest why the mail doesnt get sent.? or any other posibilities.

Also is the base of the path EVERYTHING leading up to the main file except the domain name. For example if my cgi file is in

D:docs\cgi-bin\downloads\file.cgi

And if my index domain is to D: docs\

Is my base path: \cgi-bin\downloads\

Thanks for anty respoonce to this. I know there are a few quieries her but that master of perl knows what im asking. Thanks for any help. May the force be with you always.
Back to top View user's profile Send private message Send e-mail
svankamon
-


Joined: 01 Apr 2007
Posts: 148
Location: Chesterfield UK

PostPosted: Mon Oct 01, 2007 12:26 pm    Post subject: Sorry about spelling mistakes Reply with quote

Its early, now enough caffein yet..Thanks.
Back to top View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 03 Mar 2002
Posts: 772

PostPosted: Tue Oct 02, 2007 12:35 am    Post subject: Re: Perl path and other possible errors Reply with quote

svankamon wrote:
Hi, id just like to ask a few questions to ne of you perl experts out there.

Firstly scripts require that you name the PATH to perl. Is the below correct.:

#!\C:\Perl\bin\perl

Should it begin with a slash?, is there a slash between C: and Perl.?


In other Web server, this is required. But Abyss Web Server does not require it. If you declare Perl as instructed in http://www.aprelium.com/abyssws/perl.html , Abyss Web Server will rely on the script extension to know which interpreter to run. That line is therefore not necessary.

svankamon wrote:

I have a downloader script that requires use of a mail server to mail files automatically to subscribers/users.

The admin works ok and the script seems to be fine but it doesnt send the email.

Here are a few details.?

Path to perl =
#!/C:/Perl/bin/perl

Paths to html/image/and cgi files =
$scriptpath="http://mydomain/cgi-bin/autoresponder/ar.cgi";

$htmlpath="http://cartouche.org.uk/html";

$imgpath="http://cartouche.org.uk/html/img";

Path to mailserver. (hMailServer) =

$mailprog="C:/Program Files/hMailServer/Bin/";

Can anyone sugest why the mail doesnt get sent.? or any other posibilities.


Most Perl scripts expect a sendmail compatible program to help them send the emails. So the path here should be of that sendmail program and no of your mail server.

If you're using Windows, Blat is recommended to act as a sendmail compatible sender. Blat is available from http://www.blat.net/ .

You should configure it to relay the email through your own server 127.0.0.1 (if you have an SMTP server installed). Otherwise, set it to relay emails through your ISP's SMTP server (the outgoing email server).
_________________
Forum Administrator
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group