Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

CGI open of tmpfile: No such file or directory
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



Report this thread to moderator Post Follow-up to this message
Old Post
Toxalot
03-25-08 01:00 PM


Re: CGI open of tmpfile: No such file or directory
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

Report this thread to moderator Post Follow-up to this message
Old Post
Gunnar Hjalmarsson
03-25-08 01:00 PM


Re: CGI open of tmpfile: No such file or directory
On Mar 25, 6:12 am, Gunnar Hjalmarsson <nore...@gunnar.cc> wrote:
> Toxalot wrote: 
> 
> 
>
> 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

Report this thread to moderator Post Follow-up to this message
Old Post
Toxalot
03-25-08 01:00 PM


Re: CGI open of tmpfile: No such file or directory
Toxalot wrote:
> On Mar 25, 6:12 am, Gunnar Hjalmarsson <nore...@gunnar.cc> wrote: 
>
> 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

Report this thread to moderator Post Follow-up to this message
Old Post
Gunnar Hjalmarsson
03-25-08 01:00 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Modules archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:57 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.