Re: [Tutor] Subprocess communications query

2013-12-11 Thread William Ray Wing
On Dec 10, 2013, at 2:28 PM, Reuben reuben.dl...@gmail.com wrote: Hi, There exists two Linux machines A and B. Machine B contains python script which needs to be run e.g. Test.py In order to run that script, machine A needs to telnet into machine B and then execute python Test.py

[Tutor] Subprocess communications query

2013-12-10 Thread Reuben
Hi, There exists two Linux machines A and B. Machine B contains python script which needs to be run e.g. Test.py In order to run that script, machine A needs to telnet into machine B and then execute python Test.py How can this be implemented? Is subprocess library to be used?if yes, an example

Re: [Tutor] Subprocess communications query

2013-12-10 Thread Danny Yoo
On Tue, Dec 10, 2013 at 11:28 AM, Reuben reuben.dl...@gmail.com wrote: Hi, There exists two Linux machines A and B. Machine B contains python script which needs to be run e.g. Test.py In order to run that script, machine A needs to telnet into machine B and then execute python Test.py

Re: [Tutor] Subprocess communications query

2013-12-10 Thread Reuben
I want to implement a python script on machine A to do telnet/ssh into machine B (this might be easy)and then run the Test.py (this is challenging) On 11-Dec-2013 1:05 AM, Danny Yoo d...@hashcollision.org wrote: On Tue, Dec 10, 2013 at 11:28 AM, Reuben reuben.dl...@gmail.com wrote: Hi,

Re: [Tutor] Subprocess communications query

2013-12-10 Thread Danny Yoo
Ok; so in your situation, it sounds like machine A is also running a Python script, and you want to automate the remote administration of machine B through that program. If that's the case, you may want to look at the Fabric library, or other libraries that help with driving ssh through Python:

Re: [Tutor] Subprocess communications query

2013-12-10 Thread Steve Willoughby
Reuben reuben.dl...@gmail.com wrote: I want to implement a python script on machine A to do telnet/ssh into machine B (this might be easy)and then run the Test.py (this is challenging) On 11-Dec-2013 1:05 AM, Danny Yoo d...@hashcollision.org wrote: On Tue, Dec 10, 2013 at 11:28 AM, Reuben

Re: [Tutor] Subprocess communications query

2013-12-10 Thread Steven D'Aprano
On Wed, Dec 11, 2013 at 12:58:16AM +0530, Reuben wrote: Hi, There exists two Linux machines A and B. Machine B contains python script which needs to be run e.g. Test.py In order to run that script, machine A needs to telnet into machine B and then execute python Test.py Using telnet is