Hallo, Mathieu Bouchard hat gesagt: // Mathieu Bouchard wrote:
If anyone's interested, I just wrote a Ruby wrapper for communication via netsend and
ruby -rsocket -e'TCPSocket.open("localhost",4444){|s|s.print ARGV[0]}'
it's shorter than the URL for the Perl wrapper.
Okay, attached is my quick hack Python PdSender-object/script. Either call it directly for a nice command line interface to with history (if readline is available) or use it in a Python script like:
# --- from pdsender import PdSender pd = PdSender( "localhost", 3000 ) pd.send("something was sent;") # ---
It could be much shorter, probably as short as the Ruby example, if I didn't go for a bit of comfort with readline support and a nicer prompt.
Frank Barknecht _ ______footils.org__