Ping with output control