I meant to run LAMMPS as you normally run it, but add -echo screen as command-line arguments to your invocation.
Steve