For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > April 2005 > How to get "sleep" to really sleep?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to get "sleep" to really sleep?
rwalters

2005-04-26, 4:10 pm

I am attempting to write a perl script that checks a status every sixty seconds and sleeps the rest of the time. The problem is that when run as a script, the perl interpreter does not sleep and consumes system resources. Even when I use the UNIX system call such as system "sleep 60", or `sleep 60`, it makes not difference. I have used perlcc to compile it into a binary executable and it still does not sleep. How is it that you can use a UNIX system "sleep" and not have the entire process sleep?

Any suggestions would be appreciated!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com