An important part of Pure Data is the little program called "pdsend". If you open up a port inside your pd patch-- for example, by using
[netreceive 1234]
|
[print]
then you can use pdsend to send messages to pd on that port. From a linux console on the same machine you can send a message llike this:
echo Hello World \; | pdsend 1234 localhost
and it will arrive to the left inlet of netreceive.
There are some more ways to craft a message on the console. See:
http://permalink.gmane.org/gmane.comp.multimedia.puredata.general/7654
But if you're using a remote machine, be careful because anyone who figures out you have that port open can start sending arbitrary messages to your Pd instance and/or listen to what you're sending. Plus the number of people sending messages remotely to/from Pd instances is relatively small so it isn't as hardened as something like ssh.