if ($res==0) {print "OK\n"; last;};