Dosing machine of long pasta able to be placed after a production line of the long pasta, following a conveyor able to direct the long pasta inside the dosing machine , so that the long pasta is dosed and discharged into a packaging machine, comprising two loading and dosing channels able to converge into a single compartment under which there is a conveying trough suitable for guiding the doses of long pasta in subsequent packaging phases, wherein each loading and dosing channel comprises a descender , a rotor suitable for pouring doses of long pasta into a roughing basket , and weighing devices suitable for weighing the long pasta in the roughing basket and in a finishing basket placed downstream of the roughing basket , wherein the descender comprises a roughing channel and a finishing channel , wherein the roughing basket and the finishing basket have a movable wall able to assume a closed position in which the dose of long pasta is retained in the roughing basket or in the finishing basket , and an open position in which the dose of long pasta can go below the roughing basket or the finishing basket , wherein each loading and dosing channel also comprises a distribution basket placed downstream of the finishing basket , characterized in that the distribution basket has an external movable wall and an internal movable wall which are independently operable, the external movable wall and the internal movable wall being both able to assume a closed position and an open position, wherein if both the movable walls of the distribution basket are in closed position the dose of long pasta is retained in the distribution basket , while in the case in which only the external movable wall of the distribution basket is in the open position the long pasta is able to descend into a waste channel , and alternatively, in the case in which only the internal movable wall of the distribution basket is in the open position the long pasta is able to descend into the single compartment . wherein each loading and dosing channel comprises a descender , a rotor suitable for pouring doses of long pasta into a roughing basket , and weighing devices suitable for weighing the long pasta in the roughing basket and in a finishing basket placed downstream of the roughing basket , wherein the descender comprises a roughing channel and a finishing channel , wherein the roughing basket and the finishing basket have a movable wall able to assume a closed position in which the dose of long pasta is retained in the roughing basket or in the finishing basket , and an open position in which the dose of long pasta can go below the roughing basket or the finishing basket , wherein each loading and dosing channel also comprises a distribution basket placed downstream of the finishing basket , characterized in that the distribution basket has an external movable wall and an internal movable wall which are independently operable, the external movable wall and the internal movable wall being both able to assume a closed position and an open position, wherein if both the movable walls of the distribution basket are in closed position the dose of long pasta is retained in the distribution basket , while in the case in which only the external movable wall of the distribution basket is in the open position the long pasta is able to descend into a waste channel , and alternatively, in the case in which only the internal movable wall of the distribution basket is in the open position the long pasta is able to descend into the single compartment . <EOS>