in reply to Re: Ulimit being reached
in thread Ulimit being reached
Since then we have come up with the following to trap the error - although it has thrown up a strange error of not liking the "|| die" appearing on a separate line.
The error message produced is:#!/usr/local/bin/perl use strict; use warnings FATAL => 'all'; open(OUT, '>', "splat") or die "Opening (write) 'splat' $!"; while (1) { my $line = time().’’; # THIS WORKS print (OUT $line) || die "writing 'splat' $!"; # But putting || die on another line does not. i.e: # print (OUT $line) # || die "writing 'splat' $!"; } close(OUT) or die "Closing 'splat' $!";
writing 'splat'
A file cannot be larger than the value set by ulimit. at u3.pl line 12.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Ulimit being reached
by eyepopslikeamosquito (Archbishop) on Jan 14, 2015 at 03:38 UTC | |
|
Re^3: Ulimit being reached
by eyepopslikeamosquito (Archbishop) on Jan 14, 2015 at 04:07 UTC | |
by Discipulus (Canon) on Jan 14, 2015 at 08:29 UTC |