Re: [Tutor] Subprocess communications query

2013-12-11 Thread William Ray Wing
On Dec 10, 2013, at 2:28 PM, 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" > > How can this b

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 tel

Re: [Tutor] Subprocess communications query

2013-12-10 Thread Steve Willoughby
Reuben 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" wrote: > >> On Tue, Dec 10, 2013 at 11:28 AM, Reuben >wrote: >> > Hi, >> > >> > There exists t

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 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" wrote: > On Tue, Dec 10, 2013 at 11:28 AM, Reuben wrote: > > Hi, > > > > There exists two Linux machines A and B

Re: [Tutor] Subprocess communications query

2013-12-10 Thread Danny Yoo
On Tue, Dec 10, 2013 at 11:28 AM, 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" Nothing about this