sleep 60; my $status; while(!(($status = get_value()) eq 'initializing')) { sleep 10; }