From owner-freebsd-questions Sun Jan 31 01:44:25 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA04621 for freebsd-questions-outgoing; Sun, 31 Jan 1999 01:44:25 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from charon.cctpu.tomsk.su (charon.cctpu.tomsk.su [195.208.161.33]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id BAA04611 for ; Sun, 31 Jan 1999 01:44:18 -0800 (PST) (envelope-from oleg@lib.tpu.ru) Received: from cctpu.edu.ru (cctpu.edu.ru [195.208.174.17]) by charon.cctpu.tomsk.su (8.6.12/8.6.12) with ESMTP id QAA16770 for ; Sun, 31 Jan 1999 16:44:12 +0700 Received: from genesis.lib.tpu.ru (gate.lib.tpu.ru [195.208.170.149]) by cctpu.edu.ru (8.6.12/8.6.12) with ESMTP id QAA18107 for ; Sun, 31 Jan 1999 16:44:41 +0700 Received: from lib.tpu.ru (xs04.lib.tpu.ru [195.208.170.26]) by genesis.lib.tpu.ru (8.8.8/8.8.8) with ESMTP id QAA12086 for ; Sun, 31 Jan 1999 16:44:06 +0700 (KRS) (envelope-from oleg@lib.tpu.ru) Message-ID: <36B4381B.5F23418F@lib.tpu.ru> Date: Sun, 31 Jan 1999 18:01:47 +0700 From: Oleg Kolobov Organization: TPU Library X-Mailer: Mozilla 4.06 [en] (X11; I; FreeBSD 3.0-RELEASE i386) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: a nice example Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, there is a nice example in SMM 4.4BSD documents (D. Ritchie "On the Security of UNIX) #!/bin/sh while : do mkdir test; cd test done I have been executing the script for 5 min. I can't delete directory - test!!! I use command "rm -r ./test". No result. I use script #!/bin/sh while : do if [ -n "$GO" ]; then rm -rf test cd .. else if [ -d test ]; then cd test else GO=yes fi fi done No result. Is there a nice anti_example? Thanks! -- Oleg. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message