Recconect.sh script... Help needed
It's seems is much more difficult to use a reconnect script that running pYload from scratch...
I'm trying to use this simple script:
Code:
#!/bin/sh
killall pppd >/dev/null 2>&1
sleep 5s
pppd file /tmp/ppp/options.wan0 >/dev/null 2>&1
sleep 5s
ping -c 1 www.heise.de >/dev/null 2>&1
As I wrote before, to change my IP address I simply need to disconnect and reconnect my WAN if, cause my PPPoE connection is completely handled by router (modem is bridged).
If I run manually this script line by line it works fine.
Putting it into a sh file (with +x) I have redirect errors for every line contiaining
>/dev/null 2>&1.
Changing every
>/dev/null 2>&1 in
>/dev/null2>&1 no more errors, and running this script from sh works fine, my IP address is changed everytime I start this script.
Now...
I configured pyLoad to use this script, enabled reconnect, and used the full path for Method.
I've tried to donwload a multiple-file from EasyBytez and this is my log:
Code:
EasybytezCom: You have to wait 12 minutes, 51 seconds till next download Download files instantly with Premium-account
759 24.04.2014 07:08:01 INFO Starting reconnect
760 24.04.2014 07:08:17 INFO Reconnected, new IP: 94.36.197.139
761 24.04.2014 07:08:19 INFO Download starts: spopr.part10.rev
762 24.04.2014 07:08:20 WARNING EasybytezCom: You have to wait 12 minutes, 30 seconds till next download Download files instantly with Premium-account
763 24.04.2014 07:08:21 INFO Starting reconnect
764 24.04.2014 07:08:24 INFO Reconnected, new IP: 94.36.197.139
765 24.04.2014 07:08:26 INFO Download starts: spopr.part10.rev
766 24.04.2014 07:08:27 WARNING EasybytezCom: You have to wait 12 minutes, 24 seconds till next download Download files instantly with Premium-account
767 24.04.2014 07:08:28 INFO Starting reconnect
768 24.04.2014 07:08:34 INFO Reconnected, new IP: 94.36.197.139
769 24.04.2014 07:08:38 INFO Download starts: spopr.part10.rev
770 24.04.2014 07:08:39 WARNING EasybytezCom: You have to wait 12 minutes, 11 seconds till next download Download files instantly with Premium-account
771 24.04.2014 07:08:40 INFO Starting reconnect
772 24.04.2014 07:08:44 INFO Reconnected, new IP: 94.36.197.139
773 24.04.2014 07:08:45 INFO Download starts: spopr.part10.rev
774 24.04.2014 07:08:46 WARNING EasybytezCom: You have to wait 12 minutes, 5 seconds till next download Download files instantly with Premium-account
775 24.04.2014 07:08:46 INFO Starting reconnect
776 24.04.2014 07:08:53 INFO Reconnected, new IP: 94.36.197.139
777 24.04.2014 07:08:53 INFO Download starts: spopr.part10.rev
As you can see it seems that the script is started but the IP doesn't change....
Why if I run from shell the script my IP changes and this doesn't happens in pyLoad ?
Any help is appreciated.
Thanks.