How can I kill all the processes that a shell script has generated? myscript
was run several times and created unwanted processes and I want to kill them. I am running an Ubuntu 20.
123 sh /usr/local/bin/myscript /mnt/local/data_file/data1.txt
312 sh /usr/local/bin/myscript /mnt/local/data_file/data1.txt
452 sh /usr/local/bin/myscript /mnt/local/data_file/data1.txt
455 sh /usr/local/bin/myscript /mnt/local/data_file/data1.txt
1329 sh /usr/local/bin/myscript /mnt/local/data_file/data1.txt
I have tried the solution posted here, and it does not kill them. Could someone kindly help me find an automated way of finding the processes and kill them all?