Skip to content

Instantly share code, notes, and snippets.

View uskudnik's full-sized avatar

Urban Škudnik uskudnik

View GitHub Profile
@matejc
matejc / gist:2e5e0f7a3d801364dd0b
Last active February 15, 2016 13:07
neo's solution?
#!/usr/bin/env bash
MYCOMMAND='while [ true ]; do sleep 1; echo "beje"; done'
# This will take down the whole process tree on ctrl+c
trap "exit" INT TERM
trap "kill 0" EXIT
while true; do
sleep 1;