Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
There's more than one way to do things
 
PerlMonks  

Re: Re: File copy size limit on Linux

by Anonymous Monk
on Dec 18, 2003 at 18:46 UTC ( [id://315696]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: File copy size limit on Linux
in thread File copy size limit on Linux

Hi Leonid,

Very good suggestion, I placed the error code in my script and get the following error:
Error: Value too large for defined data type at (eval 13)/usr/lib/perl5/5.6.0/p erl5db.pl:1510 line 2, <IN> line 2.

That is what makes me think the File:Copy module might have some type of size limitation. Not sure where to go from here but thanks for the help. Also, I believe I'm running Redhat 8.1 (or whatever comes shipped with ESX server) I was referring to kernel 2.4 and not 2.1.

Replies are listed 'Best First'.
Re: Re: Re: File copy size limit on Linux
by TVSET (Chaplain) on Dec 18, 2003 at 19:01 UTC
    Ok, better now. It seems to me that your version of perl was compiled without support for large files. You can verify that by executing "perl -V" from the command line and inspecting the output. You should see something like "-Duselargefiles" and/or "selargefiles=define". If you perl version was compiled without large files support, then you can rebuild it either from source or from .src.rpm (this might be easier, since you are using RedHat).

    Also, I would like to draw your attention to this paragraph in the perldoc File::Copy: "An optional third parameter can be used to specify the buffer size used for copying. This is the number of bytes from the first file, that wil be held in memory at any given time, before being written to the second file. The default buffer size depends upon the file, but will generally be the whole file (up to 2Mb), or 1k for file-handles that do not reference files (eg. sockets).". I doubt it will help you now, but it's good to have in mind. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://315696]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.