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:
Press
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**