Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2000 13:21:04 +0300
From:      Artem Koutchine <root@matrix.web2000.ru>
To:        questions@freebsd.org
Subject:   Out of disk space kills files
Message-ID:  <00021113232600.08438@matrix.web2000.ru>

next in thread | raw e-mail | index | archive | help
Hello!

I have teh following perl code:

open (F, ">>$file");
print F $somedata."\n";
close F;

when i run of out disk space this code somehow
results in 0 file length (basically kills the file). I have
lost a pretty big user list because of this. How this
happens? I should not rtuncate file, just append to it,
right?


--
Artem Koutchine (Артем Кучин)                       | 
MAIL: root@matrix.web2000.ru                        | 
WORKPLACE: http://matrix.web2000.ru                 | 
URL: http://idesign.pp.ru                           | 
Web2000 (http://www.web2000.ru)                     | 
Tel: +7(095)785-1555 (спросить Артема из ВЕБ2000)   | 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00021113232600.08438>