egunnar has asked for the wisdom of the Perl Monks concerning the following question:
[egartz@localhost fullment_programs]$ ulimit -f 10 [egartz@localhost fullment_programs]$ ./lots_of_print.pl File size limit exceeded [egartz@localhost fullment_programs]$
#!/usr/local/bin/perl -w use strict; open (LARGE_FILE, ">large_file.txt"); for ( 1 .. 10000){ print LARGE_FILE "dummy line...dummy line...dummy line...dummy + line...dummy line...dummy line...dummy line...\n" or print STDERR "i + caught the error!\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl/linux ulimit -f question
by jmcnamara (Monsignor) on Apr 03, 2006 at 13:48 UTC | |
|
Re: perl/linux ulimit -f question
by tirwhan (Abbot) on Apr 03, 2006 at 13:56 UTC | |
by egunnar (Sexton) on Apr 03, 2006 at 18:07 UTC | |
|
Re: perl/linux ulimit -f question
by merlyn (Sage) on Apr 03, 2006 at 13:31 UTC |