I have written a Perl script to run some given commands through the script.
system("my_command");
After running my Perl script, the "my_command" is starting on the Linux terminal properly. Later, I killed my script using 'ctrl+z; kill %%'. but the "my_command" is still running. I tried 'kill %%' again several times but the "my_command" did not terminate. ("my_command" is another Perl script that working properly).
What I need is, if I terminate the initial Perl script/runner then all commands that have been started using 'system()' should be terminated.
Is there any way to achieve this.?