The present invention is related to an agricultural machine provided with a mechanism involving rotating fingers (13) for gathering crops towards an entry port. One embodiment is a combine harvester provided with a header (1) equipped with a rotating auger tube (10). According to the invention, the fingers (13) are mounted to be rotatable about a shaft (35) that is itself movable inside the rotating tube, as the ends of the shaft are supported by a pair of cams (36). The ends of the shaft are movable along cam tracks (40) which impose movement of the shaft along a predefined trajectory. Through a suitable coupling mechanism, the rotation of the tube (10) drives the movement of the shaft ends in the cam tracks and hence the movement of the shaft itself, while the shaft remains parallel to the tubes rotation axis (14).