LJ/clitools/_run.sh

12 lines
167 B
Bash
Executable File

#!/bin/bash
killexit(){
pkill -9 -s $$
}
trap killexit SIGTERM SIGINT SIGKILL SIGSTOP
bash -c "$@"
killbill(){ pkill -9 -s $(awk '{print $6}' /proc/$1/stat) }