[NetBehaviour] terminated terminal termination

james morris james at jwm-art.net
Sat Feb 6 14:06:28 CET 2010

bash script (attached) is based on code here:


script requires  xterm  &  bash

scaled video of bash script output/consequences here:


the script generates a random colour and random dimensions (W x H) and
opens a terminal with these properties and passes the name of the script
to the terminal via the -e command. when the command passed to xterm via
the -e option finishes then the terminal exits.

the script recursively calls itself through "xterm -e $0" until (on my
system) eventually the system prevents any more terminals opening which
causes the last terminal to exit whih cascades down closing all of them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myterm
Type: application/octet-stream
Size: 761 bytes
Desc: not available
URL: <https://lists.netbehaviour.org/pipermail/netbehaviour/attachments/20100206/f44de724/attachment.obj>

More information about the NetBehaviour mailing list