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"
> 
> How can this be implemented? Is subprocess library to be used?if yes, an 
> example would help
> 
> Regards,
> Reuben
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor

Check out pexpect here:  http://pexpect.sourceforge.net/pexpect.html

Should do exactly what you want, and Googling for pexpect examples will turn up 
lots of stuff.

-Bill
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to