Top-rated recipes tagged "port" Code RecipesTCP Port Checker (Python) 2011-06-24T09:53:28-07:00Boubakr <p style="color: grey"> Python recipe 577769 by <a href="/recipes/users/4176416/">Boubakr</a> (<a href="/recipes/tags/checker/">checker</a>, <a href="/recipes/tags/port/">port</a>, <a href="/recipes/tags/tcp/">tcp</a>). </p> <p>a simple TCP Port Checker using socket !</p> For AMIGA-Heads Only. PAR: As A VOLUME In READ Mode Only. (Python) 2011-06-12T16:34:12-07:00Barry Walker <p style="color: grey"> Python recipe 577750 by <a href="/recipes/users/4177147/">Barry Walker</a> (<a href="/recipes/tags/amiga/">amiga</a>, <a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/parallel/">parallel</a>, <a href="/recipes/tags/parallel_port/">parallel_port</a>, <a href="/recipes/tags/port/">port</a>, <a href="/recipes/tags/read/">read</a>). </p> <p>PAR: as a VOLUME in READ mode using Python 1.4 onwards on Classic AMIGAs...</p> <p>Many years ago Irmen de Jong ported Python to the Classic AMIGA range of computers, (many thanks Irmen for your time in doing so). The versions were at least 1.4.x to 2.0.1 and now someone else has included version 2.4.6.</p> <p>This gives we lowly users of the AMIGA at least a chance to see and use Python in some guise or another. This code shows how to access the AMIGA parallel port for 8 bit READ only. This is so that ADCs could be attached to the port, read by Python code EASILY and utilised as a Data Logger/Transient Recorder, as just one example.</p> <p>There needs to be a single HW WIRE link only from the 23 way video port to the 25 way parallel port for this to work. See the archive......</p> <p><a href="" rel="nofollow"></a></p> <p>......on how to set about this extremely simple task.</p> <p>NO knowledge of the parallel port programming is needed at all to grab 8 bit data from it using Python and other languages; (ARexx is used in the archive above).</p> <p>There is a flaw, NOTE:- NOT A BUG!, in the Python code but for this DEMO it is ignored. ;o)</p> <p>I'll let all you big guns work out what it is; you will need a good working knowledge of the Classic AMIGA.</p> <p>Enjoy finding simple solutions to often very difficult problems. ;o)</p> <p>This code is Public Domain and you may do with it as you please.</p> <p>Bazza...</p> Monkey-patch execnet with more ssh settings, port, identity file, non-interactive (Python) 2011-01-15T16:35:00-08:00Dima Tisnek <p style="color: grey"> Python recipe 577545 by <a href="/recipes/users/4068698/">Dima Tisnek</a> (<a href="/recipes/tags/batchmode/">batchmode</a>, <a href="/recipes/tags/execnet/">execnet</a>, <a href="/recipes/tags/identity/">identity</a>, <a href="/recipes/tags/key/">key</a>, <a href="/recipes/tags/network/">network</a>, <a href="/recipes/tags/noninteractive/">noninteractive</a>, <a href="/recipes/tags/port/">port</a>, <a href="/recipes/tags/public/">public</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/ssh/">ssh</a>). </p> <p>execnet ( <a href="" rel="nofollow"></a> ) is pretty cool, but its ssh support needs a few tweaks, here they are.</p> <p>This snipped is a monkey patch, not a diff, import it and you can use execnet.makeportgateway instead of makegateway.</p> <p>Adapt to your needs even more!</p> Send messages between computers (Python) 2014-01-01T22:11:30-08:00FB36 <p style="color: grey"> Python recipe 578802 by <a href="/recipes/users/4172570/">FB36</a> (<a href="/recipes/tags/chat/">chat</a>, <a href="/recipes/tags/port/">port</a>, <a href="/recipes/tags/socket/">socket</a>). </p> <p>Simple scripts to chat between computers in the same network.</p> <p>Both computers must be running both of these scripts and target ip addresses must be set correctly.</p> <p>(IP address of a computer can be found using ipconfig command.)</p>