| Author |
CGI open of tmpfile: No such file or directory
|
|
| Toxalot 2008-03-25, 8:00 am |
| 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
| |
| Gunnar Hjalmarsson 2008-03-25, 8:00 am |
| 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
| |
| Toxalot 2008-03-25, 8:00 am |
| 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
| |
| Gunnar Hjalmarsson 2008-03-25, 8:00 am |
| 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
|
|
|
|