Ping with output clause