[Request] Killing a specific command in Linux?
1 Attachment(s)
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. |
Did you run it as root(?).
|
Quote:
yes i tried that |
Power the device off!
You have already lost whatever was overwritten. Heck,don't shred important data! |
where is killall installed?
On my system: Code:
# which killall From man killall...emphasis added. Quote:
How do you know which one you want to kill, if you don't want to kill them all? Check out pkill, perhaps. |
Quote:
Code:
pkill --full "shred -v -f -z /dev/sdc" |
Quote:
|
All times are GMT -5. The time now is 12:26 AM. |