Date: Thu, 13 May 2004 17:09:01 -0600 From: Dan Harris <fbsd@drivefaster.net> To: "freebsd-questions@FreeBSD. ORG" <freebsd-questions@FreeBSD.ORG> Subject: Re: perl pause or wait Message-ID: <40A4000D.6070302@drivefaster.net> In-Reply-To: <MIEPLLIBMLEEABPDBIEGOEBBFOAA.Barbish3@adelphia.net> References: <MIEPLLIBMLEEABPDBIEGOEBBFOAA.Barbish3@adelphia.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40A4000D.6070302>