Originally posted by: Hyperblaze
Originally posted by: CorporateRecreation
kill -9 hyperblaze
that wouldn't work.
You would need to nuke a process id.
I'm sure you could do a
ps -aux | grep hyperblaze | awk 'print $2'' | kill -9 $
(I think)
edit: actually....you'd have a better chance with this...
#!/bin/sh
file=/sbin/hyperblaze
name=$(ps --no-headers -l -C hyperblaze)
echo $name > $file
count=0
for i in $(cat $file | tr '' '~')
do
if [ $count -eq 3 ]; then
echo $i
kill -INT $i
fi
let count=$count+1
done
I tested it (with different variables, it works)