in reply to Re: Getting Close and Cuddly with the sleep() function
in thread Getting Close and Cuddly with the sleep() function
what does:
if(fork())
do? does this fork the process if it can?
is fork not allowed in some systems? this script is most likely going to be running on *nix, I'm very unknowing about how to make any forked processes. There are no easy to understand tutorial on it :)
would it be better to have the web-based program actually gather the information, then pipe this info to another script that only does the mailing? this seems to be a somewhat the same idea to fork() to a child process to do the dirty work. Then would that script not fall into the timeouts of the cgi program?
>>you should also close STDIN
probably a good idea!
Seems simple to just mail whoever the owner of the list is every time a batch goes out, or when the mailing is done to keep tabs.
I'm stil a bit shaky on how to do this, does anyone else have any good advice?
-justin simoni
!skazat!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: Getting Close and Cuddly with the sleep() function
by cianoz (Friar) on Nov 06, 2000 at 04:51 UTC | |
by skazat (Chaplain) on Nov 06, 2000 at 06:01 UTC | |
by cianoz (Friar) on Nov 06, 2000 at 16:09 UTC |