An alternative solution is you can put the data to a file locally, then SCP that file to the remote box.
Example:
I want to add today's date to file foo, and copy it to another box.
Code:
echo `date` >> /path/to/foo
scp /path/to/foo foouser@barserver:/path/to/foo
Don't know if that'll work for you, but it's a solution.