Posts: 79
Joined: Oct 2004
Reputation:
0
i've had a look through the yac and the wake-on-lan scripts, which are fairly complicated to follow (for a stupid python beginner like me). some of it makes sense, most of it does not, any chance i can get a stripped down version using a class like telnetlib?
thanks again.
jt
Posts: 79
Joined: Oct 2004
Reputation:
0
can you post the full script that you created using the telnetlib class?
i tried the script you provided above, but it doesn't even open an ok dialog box for me, am i missing something?
thanks
jt
Posts: 4
Joined: Jan 2006
Reputation:
0
Hi
I'm trying to run a script from my xbox that access's my LinkStation via telnet.
The script is basic:
---------------------------------------------------------------------
from telnetlib import Telnet
tn = Telnet('192.168.0.9', 23)
tn.read_until('login:')
tn.write('root\n')
tn.read_until('password:')
tn.write('********\n')
tn.read_until('#')
tn.write('shutdown -r now\n')
tn.close()
---------------------------------------------------------------------
But doesn't work for sme reason. I'm not sure if the Telnet feature is working properly. I'm running the latest T3CH build and the latest MC360 dash.
Is there anyway of checking logs or running tests to see if Telnet is failing. To be honest is Telnet even built into the T3CH builds??
Any help appreciated.
Posts: 5
Joined: Feb 2009
Reputation:
0
it's interesting, I go to make my script for reconnet my adsl router from xbmc. Reasons: limit 71 minutes from megavideo. I use videomonkey-atrapavideo (online stream flash for films and series in Spanish in web sersiesyonkis.com and peliculasyonkis.com).