in reply to append an expression to a file on remote host
What kind of expression?
Could we see your first attempt?
Use SSH and SCP instead of RSH/RCP though.