How to store initial pressure component

Dear LAMMPS users,

Hi,

I need to store my very initial pressure components of the system just after reading the structure. I know I have it in my log file. But, I want to somehow store it in a .txt file for instance. But, if I use "

fix def1 all print 1 "{p1} {p2} {p3} {p4} {p5} {p6} ${p7} " file Final.txt screen no ", the first row is for the 1 step not step zero. Any comment please ?
Regards,
Ali

Dear LAMMPS users,

Hi,

I need to store my very initial pressure components of the system just after
reading the structure. I know I have it in my log file. But, I want to
somehow store it in a .txt file for instance. But, if I use "

fix def1 all print 1 "\{p1\} {p2} \{p3\} {p4} \{p5\} {p6} ${p7} " file
Final.txt screen no ", the first row is for the 1 step not step zero. Any
comment please ?

how about you set your initial timestep to 1?