run multiple lammps simulation in a consecutive way

Please post to the list, not to me.

But i want to use the restart file from the last lammps simulation as the read-in file for the next simulation. I dont know >how to do this right. If a shell script can do this?

I told you how to do this in my previous email. The LAMMPS read_restart command
can read the last restart file. You can thus do this from a LAMMPS script
or thru the Python interface, or in a shell script (by simply invoking LAMMPS with

an appropriate restart script).