![](https://secure.gravatar.com/avatar/a9bbe56decf413520cb452c98092d04d.jpg?s=120&d=mm&r=g)
Hi! consider the following Plain TeX file: \immediate\immediate\openout1=test.out \immediate\write1 {line 1} \immediate\write1 {line 2} \immediate\closeout1 \bye (it was reduced from a real-life example). if i process it with vanilla TeX engine (i.e. not with pdfetex, but with TeX), you get what i expect: two lines are written to the file test.out, and there are no pages of output (no DVI file generated). however, if i process this file with pdfetex, i do not get what i would expect: instead, the lines are written to terminal, test.out is created and is empty, and there is also a 1-page PDF file generated. the bug goes away if i remove the second \immediate, but as i said this is a simplified example converted from a real-life usage. Best, v.