SPUG: Sleep

Tim Maher tim at consultix-inc.com
Wed Jul 20 14:52:51 PDT 2005


On Wed, Jul 20, 2005 at 03:35:09PM -0600, Medrano-Zaldivar, L E wrote:
> List,
> 
> I need to put sleep a script for 5 min and after that I need
> for the script to keep running how can I do that?

> 
> Thanks,
> 
> Luis

# Ready to sleep for 5 minutes
sleep (5*60);
# Awake, now script resumes

See "perldoc -f sleep" for additional details.

*--------------------------------------------------------------------------*
| Tim Maher, PhD     (206) 781-UNIX      (866) DOC-PERL     (866) DOC-UNIX |
| tim(AT)Consultix-Inc.Com  http://TeachMePerl.Com  http://TeachMeUnix.Com |
*+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*
|    Watch for my Fall, 2005 book: "Minimal Perl for UNIX/Linux People"    |
|  See http://minimalperl.com for details, ordering, and email-list signup |
*--------------------------------------------------------------------------*


More information about the spug-list mailing list