in reply to Re^3: Executing one script from another
in thread Executing one script from another

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

Replies are listed 'Best First'.
Re^5: Executing one script from another
by locked_user sundialsvc4 (Abbot) on Nov 11, 2010 at 12:11 UTC

    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.