to be more specific this is what i i'm trying to do. $number = 0; - we have a job number variable i want to have 3 "child" processes where each one will pause for 5 seconds. "sleep (5)" and increase the $number++; generate a random number ($weight) from 48-62 using the "RAND" command. and then write a file with the following records. name::job_number::weight::date::time each child process must do this 5 times. can u show me how fork works in order to do what i described ? ps. i dont want to be 100% operational just give me some leads. |
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!