How to close a run and open a new one?

YOU HAVE TO:

  1. to close the present runXXXX.dat and open a new one (runYYYY.dat where YYYY=XXXX+1)
  2. to transfer the runXXXX.dat to the gaspux5
  3. to move the runXXXX.dat from the root directory to the Dati_online directory in the gaspux4
  4. to control that the filesize of the files in Dati_online and in the SUN gaspux4 are the same
  5. to delete the file runXXXX.dat in the SUN (gaspux4)
  6. to copy in magnetic tape, from time to time, the files runXXXX.dat @ the gaspux5 (PC LINUX)
  7. to delete after the copy in tape, the files runXXXX.dat @ the LINUX PC (gaspux5)