Deleting in.script

Submitted by rahulsoni on Mon, 09/30/2013 - 11:15

I have a query that may appear peculiar. Actually, I have installed either LIGGGHTS 2.3.6 and LIGGGHTS 2.3.7 in 3 of our laptops and one workstation with Ubuntu platform (both 12.04 LTS and 13.04). All were working fine earlier. But now when I cd to .../examples/LIGGGHTS/Tut../example in a terminal, and run liggghts > in.script then nothing happens in terminal.
Moreover, the code inside the relevant in.script get deleted or sometimes replaced by this message "LIGGGHTS (Version LIGGGHTS-PUBLIC 2.3.6, compiled 2013-09-06-14:07:53 by root based on LAMMPS 20 Apr 2012)".

Can anyone help in giving clue that why it is happening.

Thanks in advance.

rahulsoni | Mon, 09/30/2013 - 12:35

Got the answer from richti83 as below:

This is because most of peaple don't take care of the difference between the > AND < sign !!
liggghts > bla will copy the output of liggghts to file bla (or you inputscript). The first output is the line with the version string
instead
liggghts < bla will send the content of bla to liggghts

I would tell everybody not to use the < symbol and to write liggghts -in scriptname.lmp instead

Best,
Christian

--
Regards

Rahul Kumar Soni
Scientist, CSIR - IMMT, India