chmod +x wait script