Want to write a command that keeps pressing enter key in regular interval

Hi,
I m new to linux, can you pls help me to write a command/ script that keeps pressing the enter key in regular interval.

Thx,
Linux1

Please elaborate. This is too generic. Please provide some inputs, desired output..

This may work but it depends on what you are actually doing and how your program reads it's input.
The program "yes" normally outputs "y" continuously. It can be told to produce continuous "enter".

yes "" | program_name