Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stat on a large file #2170

Closed
p5pRT opened this issue Jul 4, 2000 · 2 comments
Closed

stat on a large file #2170

p5pRT opened this issue Jul 4, 2000 · 2 comments

Comments

@p5pRT
Copy link

@p5pRT p5pRT commented Jul 4, 2000

Migrated from rt.perl.org#3465 (status was 'resolved')

Searchable as RT3465$

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Jul 4, 2000

From dscott@dgt.com

I've been working wtih Perl and am trying to delete some large files by
date.

The stat command seems a logical choice but the data can not be read on
a
large file.

Sun OS
ls of file​:

-rw-r----- 1 oracle2 dba 4934001152 Jun 28 05​:29
df_t401428830_s165_p1

I know ... it is 4 GB but that is common on today's disks.

Any workaround for this?

Thanks,

David
dscott@​dgt.com

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Jul 4, 2000

From @jhi

Sanan virkkoi, noin nimesi David Scott​:

I've been working wtih Perl and am trying to delete some large files by
date.

The stat command seems a logical choice but the data can not be read on
a
large file.

Sun OS
ls of file​:

-rw-r----- 1 oracle2 dba 4934001152 Jun 28 05​:29
df_t401428830_s165_p1

I know ... it is 4 GB but that is common on today's disks.

Any workaround for this?

Using Perl 5.6. Its stat() should be work fine with large files.
A lot of work went into making Perl 5.6 and large files to understand
each other. Go to

http​://www.cpan.org/ports/

and look for "Solaris" if you want just to quickly get a Perl 5.6 for
Solaris. In the long run compiling from the source is of course more
recommendable.

Thanks,

David
dscott@​dgt.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant