But the proper interface for this is RPC, which most Unix boxen support. Not sure which RFC covers RPC.
The other way is to build a simple php or cgi page on the other box that accepts commands from your box only, with some kind of simple authentication. It's not real secure, but if no one knows about it... :)