Click here to get back home

CGI open of tmpfile: No such file or directory

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
CGI open of tmpfile: No such file or directory Toxalot 03-25-2008
Posted by Toxalot on March 25, 2008, 6:00 am
Please log in for more thread options
I haven't used perl in years. An old client just changed servers and
contacted me because an upload script I created no longer works.

The error message is
CGI open of tmpfile: No such file or directory

I've Googled this and I've tried putting the following at the top of
my script
BEGIN { $TempFile::TMPDIRECTORY = '/home/gfxprint/tmp'; }

There is already a world writable tmp directory in / and /var and /
home/gfxprint

/usr/tmp is a link to /var/tmp

I tried creating /home/gfxprint/usr/tmp

None of the above fixes the problem and I'm pulling my hair out.

Suggestions?

Jennifer



Posted by Gunnar Hjalmarsson on March 25, 2008, 6:12 am
Please log in for more thread options
Toxalot wrote:
> I haven't used perl in years. An old client just changed servers and
> contacted me because an upload script I created no longer works.
>
> The error message is
> CGI open of tmpfile: No such file or directory
>
> I've Googled this and I've tried putting the following at the top of
> my script
> BEGIN { $TempFile::TMPDIRECTORY = '/home/gfxprint/tmp'; }

The variable name is $CGITempFile::TMPDIRECTORY

If you encounter further difficulties, you may want to try the CPAN
module CGI::UploadEasy.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Posted by Toxalot on March 25, 2008, 7:00 am
Please log in for more thread options
> Toxalot wrote:
> > I haven't used perl in years. An old client just changed servers and
> > contacted me because an upload script I created no longer works.
>
> > The error message is
> > CGI open of tmpfile: No such file or directory
>
> > I've Googled this and I've tried putting the following at the top of
> > my script
> > BEGIN { $TempFile::TMPDIRECTORY = '/home/gfxprint/tmp'; }
>
> The variable name is $CGITempFile::TMPDIRECTORY
>
> If you encounter further difficulties, you may want to try the CPAN
> module CGI::UploadEasy.
>
> --
> Gunnar Hjalmarsson
> Email:http://www.gunnar.cc/cgi-bin/contact.pl

Thanks. That fixed it. Did the variable name change? I saw that
variable in more than one thread.

And why would I need to set it? Why can't it just find the directory
on its own? Does it have anything to do with /usr/tmp being a link and
not a directory?

Jennifer

Posted by Gunnar Hjalmarsson on March 25, 2008, 7:56 am
Please log in for more thread options
Toxalot wrote:
>>
>> The variable name is $CGITempFile::TMPDIRECTORY
>
> Thanks. That fixed it. Did the variable name change?

Don't know.

> And why would I need to set it? Why can't it just find the directory
> on its own?

Maybe insufficient permissions for /var/tmp ?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Similar ThreadsPosted
How to open temporary with Perl 5.6? September 24, 2007, 12:28 pm
ANNOUNCE: OpenOffice-OODoc for Open Document format August 15, 2005, 9:39 pm
Software Development Engineers needed - open source enviro - Seattle December 10, 2004, 3:38 pm
Traverse a directory July 13, 2006, 2:10 pm
Glob and Traversing Directory July 14, 2006, 12:13 pm
New Script Directory needs your scripts listed September 3, 2005, 6:32 pm
Modules not installing to standard LIB directory November 17, 2005, 8:14 am
Current Directory when test.pl runs ? December 14, 2004, 9:31 am
Directory for site-packaged module man pages December 15, 2004, 2:55 pm
Loading Perl Modules from same directory as script February 13, 2006, 5:27 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap