[H-GEN] Perl temp problem
Tony Melia (DMS)
Tony.Melia at downsmicro.com.au
Sun Apr 27 19:16:08 EDT 2003
Hi,
I have a perl script which calls a system() command to do a trivial
task that creates an anonymous temp file. This worked fine up until I did
an up2date today (yes, I know, some people say never to run it!). An
example demonstrating problem is ;
#!/usr/bin/perl
System("lynx -source http://whatever <http://whatever> | mail
me at myaddress").
I now get an email (instead of the html content) saying /var/www/IKJTE:
permission denied
Obviously the IKJTE changes each run. I tried defining temp/tmp/and
LYNX_TEMP_SPACE in the /etc/profile, but still same. I can fix it by giving
the user apache write access to /var/www but I assume this is bad practice.
Any suggestions to force this to use /tmp as the tmp space??
I am guessing this failed because lynx was rebuilt or ./configure'd without
the TMP info set.
Using RH8, perl + perlmod, with apache.
Downs MicroSystems Pty Ltd
145 Margaret Street
Toowoomba Qld 4350
Ph. (07) 4639 3344 Fax (07) 4639 3820
Important Disclaimer and Warning
Downs MicroSystems does not represent or warrant that any attached files are
free from computer viruses or other defects. The attached files are
provided, and may only be used, on the basis that the user assumes all
responsibility for any loss, damage or consequences resulting directly or
indirectly from use of the attached files. The liability of Downs
MicroSystems in any event is limited to either the resupply of the attached
files or the cost of having the attached files resupplied.
NOTE: The views expressed by the individual in this message do not
necessarily reflect those of the organisation.
Downs MicroSystems is committed to protecting the privacy of individuals,
and is bound by the principles of the Commonwealth Privacy Act (1988).
Should you wish to view our Privacy Policy, please visit
www.downsmicro.com.au.
The information contained in this message is confidential and may be legally
privileged. The message is intended solely for the addressee(s). If you are
not the intended recipient, you are hereby notified that any use,
dissemination, or reproduction is strictly prohibited and may be unlawful.
If you are not the intended recipient, please contact the sender by return
e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.humbug.org.au/pipermail/general/attachments/20030428/de2738b3/attachment.html>
More information about the General
mailing list