JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > International Support > Reconnect
Reply
 
Thread Tools Display Modes
  #1  
Old 07.10.2009, 18:36
firestorm99
Guest
 
Posts: n/a
Thumbs up HowTo: Reconnect with THOMSON TG585 v7 SW: 8.6.9.0 using expect

These instruction should work in all unixoid OS. For Windows check the links at the end of the post.
---------------
Hi everybody,
this is my first post here.

Here are instructions on how to reconnect with THOMSON TG585 v7, which is used i.e. by Telekom Austria.

As the existing LiveHeader/curl solutions didn't work for me, I decided to create a script based on telnet automation using the commandline tool "expect":

For reading what expect exactly is please follow **External links are only visible to Support Staff**here

Instructions:

1. Step: Start Terminal


Unix: start your prefered terminal, e.g. xterm, ...

OS X: Use Spotlight to find "Terminal.app" and open it

2. Step: Using nano to create script:
In Terminal type in
Code:
nano [path]/rcon.sh
"[path]/" is optional, if you want your script in a different directory than ~/ (which is your homedir. On OS X e.g. /Users/admin)

3. Step: Paste following code to the terminal after entering your [router-ip] and login data to [user] and [pw]

Code:
#!/usr/bin/expect
spawn telnet [router-ip]
expect "Username : "
send "[user]\r"
expect "Password : "
send "[pw]\r"
expect "=>"
send "ppp ifdetach\r"
expect "intf"
send "INTERNET\r"
expect "=>"
send "ppp ifattach\r"
expect "intf"
send "INTERNET\r"
expect "=>"
send "exit\r"
Click "show" for a sample for those who are not sure how to change the script:

Spoiler:
Code:
#!/usr/bin/expect
spawn telnet 10.0.0.138
expect "Username : "
send "admin\r"
expect "Password : "
send "admin\r"
expect "=>"
send "ppp ifdetach\r"
expect "intf"
send "INTERNET\r"
expect "=>"
send "ppp ifattach\r"
expect "intf"
send "INTERNET\r"
expect "=>"
send "exit\r"


Press
Code:
Ctrl + X
then type in "y" for saving changes and hit enter.

To mark the script as executable type in

Code:
chmod +x  [path]/rcon.sh
Use "[path]/" only if you choosed an other directory above.

4. Step: Settings in JDownloader:

Go to Settings --> Modules --> Reconnection --> External
Press "Select" and point to the script location.

Note: If you used an other method for reconnecting before, it is possibly necessary to clear all other reconnection tabs to make sure that jDownloader uses the right method.

Parameters are unecessary here, the timeout for execution could be set to 3 secs.

To test press: "Change IP"

Hopefully it works for you too

Note: There are ports of "expect" for Windows too (TCL). So feel free to experiment
Links:
Code:
**External links are only visible to Support Staff**

Last edited by firestorm99; 06.06.2010 at 14:19. Reason: *simplifying*
Reply With Quote
  #2  
Old 02.12.2009, 00:40
dj516nadz
Guest
 
Posts: n/a
Default

thanks
Reply With Quote
  #3  
Old 03.01.2010, 19:26
zeinlinger721
Guest
 
Posts: n/a
Default

Thanks:thumbup:
Reply With Quote
  #4  
Old 16.02.2010, 15:53
kanu
Guest
 
Posts: n/a
Default

how to create for windows XP
Reply With Quote
  #5  
Old 15.03.2010, 15:43
Shaphan
Guest
 
Posts: n/a
Default

Yet not working ;(
OS 10.6.2 snow leopard, latest JD
Reply With Quote
  #6  
Old 06.06.2010, 13:58
firestorm99
Guest
 
Posts: n/a
Default

i can confirm, that it works still using OS X 10.6.3.

are you sure that you followed the steps correctly?
Reply With Quote
  #7  
Old 18.11.2010, 02:15
boha90
Guest
 
Posts: n/a
Default

hope this work with me
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 10:00.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.