I am only a humble scribe, but if I remember correctly, the system function creates a child process and the exec function should actually fork. If you use exec, I think you should be able to kill off the first script without damaging the second.
However, if you are running Windows, I suppose things might be different; I've heard that Windows can't really fork.
Updated:Ah, my mind was obviously foggy when I wrote that: obviously my notions of forking were all messed up. Perhaps someone wiser than I would be so kind as to explain *exactly* what happens when both of these functions are executed.
In reply to Re: How to reduce memory by killing redundant perl executables
by mvaline
in thread How to reduce memory by killing redundant perl executables
by juo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |