Routertech Reconnect Script for JDownloader

Utilities and tools for networking, routers, setup etc
Post Reply
famrt
Novice
Novice
Posts: 34
Joined: Sun Nov 01, 2009 2:29 pm

Routertech Reconnect Script for JDownloader

Post by famrt » Fri Oct 21, 2011 7:24 pm

Hello,
does someone else use JDownloader here?

I ask, because in JDownloader it is possible to add scripts for automatic reconnect (for filehosters like rapidshare, etc.). However I don't know how to write such a script for a reconnect of the RT FW, also there are several options for the script see here:
Zwischenablage01.png
JDownloader
(LiveHeader/Curl, Extern, Batch, CLR Script).

So does anybody has already such a script or can help me to write one?

Thanks
famrt
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Re: Routertech Reconnect Script for JDownloader

Post by mstombs » Fri Oct 21, 2011 9:31 pm

Have a search of the forums, it has been discussed before - for PPPoA connections all you need to do is login over telnet and "killall pppd", PPPoE connections are harder.
famrt
Novice
Novice
Posts: 34
Joined: Sun Nov 01, 2009 2:29 pm

Re: Routertech Reconnect Script for JDownloader

Post by famrt » Sat Oct 22, 2011 10:45 am

mstombs wrote:Have a search of the forums, it has been discussed before - for PPPoA connections all you need to do is login over telnet and "killall pppd", PPPoE connections are harder.
Ah, you men this Thread: JDownloader script for Routertech firmware is the info still valid (because its from 2010)?

So would this still work?:

Code: Select all

-------------------Telnet Scripter script for PPPoE (reconnect_IPv4.txt)
# IP address and telnet port
HOST 192.168.1.1 23

# login
# user name
WAIT "login"
SEND "root\n"

# password
WAIT "Password"
SEND "Admin\n"
WAIT "#"

# Stop connection
SEND "echo \"begin;connection0:pppoe:command/stop=1;end\" | cm_cli_tty\n"
WAIT "#"

DELAY 2

# Start connection
SEND "echo \"begin;connection0:pppoe:command/start=1;end\" | cm_cli_tty\n"
WAIT "#"

DELAY 2
Thanks
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Re: Routertech Reconnect Script for JDownloader

Post by thechief » Sat Oct 22, 2011 4:26 pm

Have you tried it?
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
cybor
Novice
Novice
Posts: 29
Joined: Fri Oct 06, 2006 10:49 pm
Location: Parma (Italy)

Re: Routertech Reconnect Script for JDownloader

Post by cybor » Mon Oct 24, 2011 9:40 am

I don't have a valid script now due to I don't use a RT Router in this moment and I have lost my old script, but using the JD wizard I was able to create a script to reconnect the adsl to obtain a new ip when needed.

Bye, Carlo.
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Re: Routertech Reconnect Script for JDownloader

Post by thechief » Mon Oct 24, 2011 10:35 am

This this (or a variant of it):

Code: Select all

HOST 192.168.1.1 23
WAIT "login"
SEND "root\n"
WAIT "Password"
SEND "Admin\n"
WAIT "#"
SEND "/usr/local/bin/ppp_restore.sh\n"
WAIT "#"
DELAY 2
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
Post Reply