This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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; |