From owner-freebsd-questions@FreeBSD.ORG Thu May 13 16:09:05 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6976216A4CE for ; Thu, 13 May 2004 16:09:05 -0700 (PDT) Received: from crestone.coronasolutions.com (crestone.coronasolutions.com [66.45.104.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE32343D53 for ; Thu, 13 May 2004 16:09:02 -0700 (PDT) (envelope-from fbsd@drivefaster.net) Received: from localhost (localhost [127.0.0.1]) by crestone.coronasolutions.com (Postfix) with ESMTP id E8457BFCF for ; Thu, 13 May 2004 17:07:53 -0600 (MDT) Received: from crestone.coronasolutions.com ([127.0.0.1])port 10024) with ESMTP id 31498-08 for ; Thu, 13 May 2004 17:07:53 -0600 (MDT) Received: from [192.168.1.12] (c-24-9-24-35.client.comcast.net [24.9.24.35]) by crestone.coronasolutions.com (Postfix) with ESMTP id 8BB44BF5A for ; Thu, 13 May 2004 17:07:53 -0600 (MDT) Message-ID: <40A4000D.6070302@drivefaster.net> Date: Thu, 13 May 2004 17:09:01 -0600 From: Dan Harris User-Agent: Mozilla Thunderbird 0.6 (Macintosh/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "freebsd-questions@FreeBSD. ORG" References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at drivefaster.net Subject: Re: perl pause or wait X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2004 23:09:05 -0000 JJB wrote: >I have perl script that issues the newsyslog command followed by 3 >perl scripts that process the new .0 rotated file. > >Problem is the newsyslog rotate has not completed creating the new >.0 and rolling through the other .x files before the first perl >script in trying to open the .0 file for processing. > >Is there in perl pause or wait command I can use to allow some time >to elapse before continuing with the launch of the next script? > > > > Yes, use the sleep() function. perldoc -f sleep for more information. -Dan