while($EXIT == 0) { $temp = pollForData(); print $temp; print LOG $temp; sleep(1); }