lj-clitools/_run.sh

12 lines
167 B
Bash
Raw Normal View History

2020-11-11 16:31:08 +00:00
#!/bin/bash
killexit(){
pkill -9 -s $$
}
trap killexit SIGTERM SIGINT SIGKILL SIGSTOP
bash -c "$@"
killbill(){ pkill -9 -s $(awk '{print $6}' /proc/$1/stat) }