se un comando restituisce un errore lo scrive sul file invece che scrivertelo sullo schermo!