merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 09 Jul 2011 01:53:59 +0300
changeset 891 8e87f1c5c60d
parent 889 f18e156d1549 (current diff)
parent 890 6f835a47d0e0 (diff)
child 893 50b41a290439
merged
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sh.rst	Sat Jul 09 01:53:59 2011 +0300
@@ -0,0 +1,6 @@
+-*- mode: outline; coding: utf-8 -*-
+
+* Kill processes after timeout.
+
+  $ yes xxx& p1=$! ; yes ===& p2=$! ; sleep 2; kill $p1; kill $p2
+