Skip to content

Instantly share code, notes, and snippets.

View alvin4frnds's full-sized avatar
🎯
Focusing

Praveen Kumar alvin4frnds

🎯
Focusing
View GitHub Profile
#!/bin/bash
for cmd in "$@"; do {
echo "Process \"$cmd\" started";
$cmd & pid=$!
PID_LIST+=" $pid";
} done
trap "kill $PID_LIST" SIGINT