in reply to Thread Exit Status

A few questions:

  1. If you have no use for $num (aka. $callnum inside RunChild ) why are you returning that?
  2. If you aren't going to do anything with the output from curl, why are you using backticks?
  3. Why are you naming the curl output file with a number, but all your threads are fetching the same, hard-coded url/file?

    If you want multiple copies of the same remote file with numeric names, why not fetch it once and then copy it locally?

I think I know how to implement what you might actually want, but I'd only be guessing what that is because you sample code makes no sense. Once you've clarified what your real code does, or should do, then it will probably be quite easy to suggest a solution.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.