perl pause or wait
Dan Harris
fbsd at drivefaster.net
Thu May 13 16:09:05 PDT 2004
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
More information about the freebsd-questions
mailing list