List Info

Thread: Script generated e-mail failing after upgrade to Perl-5.8.8, Apache-2.2.3,




Script generated e-mail failing after upgrade to Perl-5.8.8, Apache-2.2.3,
user name
2006-12-18 22:44:07
Am migrating an existing Perl site to new system. (Currently
on
FreeBSD 4.3, Apache 1.3.19, Perl 5.005_03) I'm using a fresh
install
of FreeBSD 6.1, Apache-2.2.3 & Perl-5.8.8.

This site allows and adminstrator to run Perl scripts. One
of these
pulls e-mail addresses from a PostgreSQL database, grabs a
text file
(the message body) and sends out e-mails. 

Problem:

   -  Using the script in a browser does generate the
e-mails but does
not include the text file, resulting in an empty e-mail.

   -  Running the same script from the command line (i.e.
#perl
script.pl) does include the text file as it should. Running
from the
command line is not an option for this site, however.

Have checked permissions, tried different users, isolated
the relevant
code, etc., all no help.

The code line that generates the e-mail is:

   system("mail -s "Daily headlines" $whoto
< $mailtmp");

Where $whoto is the e-mail address pulled from the database
and
$mailtmp is a text file, (i.e. /tmp/mailfile).

Have reinstalled both Perl & Apache from source with no
effect. Any
suggestions/ideas? 

Thanks!



Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/perl-beginner/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http
://groups.yahoo.com/group/perl-beginner/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:perl-beginner-digest@yahoogroups.com 
    mailto:perl-beginner-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    perl-beginner-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )