Article 4S43G [Request] Killing a specific command in Linux?

[Request] Killing a specific command in Linux?

by
finalturismo
from LinuxQuestions.org on (#4S43G)
Ok so i have a question about killing a specific shred process in Linux

I need to kill for example a shred process of many , but i don't want to kill them all.

I need this for a udev removal script for my hard drive wiper i have been working on.

I need to kill the following command "shred -v -f -z /dev/sday"

but when i issue the command killall "shred -v -f -z /dev/sday"

i get the following no such file or directory?

i don't understand why something so basic wont work with a simple command?

any help on this one guys, free rep :)

note: i cant kill the process with PID as the numbers change.
Attached Thumbnailsattachment.php?attachmentid=31481&stc=1& latest?d=yIl2AUoC8zA latest?i=Uk2U7QAS-Qo:_VJzSRZKpqE:F7zBnMy latest?i=Uk2U7QAS-Qo:_VJzSRZKpqE:V_sGLiP latest?d=qj6IDK7rITs latest?i=Uk2U7QAS-Qo:_VJzSRZKpqE:gIN9vFwUk2U7QAS-Qo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments