Or am I reading this incorrectly?while (1) { while ( currenttime is between 11PM and 6AM ) { scan directory every hour send found files to other process } while( currenttime is not between 11PM and 6AM ) { sleep # whatever process you have here } }
In reply to Re: sleep() but don't exit
by Transient
in thread sleep() but don't exit
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |