open(CMD, "|while true; do echo boo; sleep 2; done"); print "open returned - exiting\n";