+−-*- mode: outline; coding: utf-8 -*- +− +−* Kill processes after timeout. +− +− $ yes xxx& p1=$! ; yes ===& p2=$! ; sleep 2; kill $p1; kill $p2 +−