piazzaci un read alla fine dello script.
per uscire basterà premere un tasto.