From owner-freebsd-questions Fri Feb 11 2:20: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from matrix.web2000.ru (matrix.web2000.ru [195.58.61.37]) by builder.freebsd.org (Postfix) with ESMTP id 959D346D2 for ; Fri, 11 Feb 2000 02:20:04 -0800 (PST) Received: from matrix.web2000.ru. ([195.58.61.37] helo=matrix.web2000.ru) by matrix.web2000.ru with smtp (Exim 3.02 #1) id 12JDEX-0002C9-00 for questions@freebsd.org; Fri, 11 Feb 2000 13:23:29 +0300 From: Artem Koutchine Reply-To: root@matrix.web2000.ru Organization: Web2000 To: questions@freebsd.org Subject: Out of disk space kills files Date: Fri, 11 Feb 2000 13:21:04 +0300 X-Mailer: KMail [version 1.0.17] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <00021113232600.08438@matrix.web2000.ru> Content-Transfer-Encoding: 8bit X-KMail-Mark: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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