input redirection question

Hi,

in my script I need to execute the following command:

query $id 456 432

but it waits for a RETURN character from keyboard and therefore, it fails. I tried something like:

query $id 456 432 << '\n'

but, i'ts clear it is not correct. Is there any way to do this?

Thxs.