While(1) loop for noninteractive (cluster-mode)