There is one DB process , i want to kill it and its name is another.perl.I have written the script to kill the process. and i want the main program that is test.perl to kill another.perl in the middle of execution ,and test.perl must run even after another.perl is ended .
Comment on Re^4: Executing one script from another
You simply have to arrange for the assassin to recognize its own foot, so as not to shoot it off. Every process has an id-number, or “pid,” and the loop that goes through shooting bullets must ignore its own pid, thus avoiding shooting itself.