Dear Hector, I do not really know what you want to do, but I run my scripts totally automatic by a self-written shell script where i used the following lines and they work fine - for example: g_energy -f blah.edr -o blah_angle.xvg << EOF Angle EOF Hope that helps greetings joern