4G proxy rotation intervals

I just returned the first dongle to amazon. Unfortunately the second one is a little more expensive but it worked for me.

i bought it from the shop since more then 1 month :smiley: haha

omg i just noticed that i missed the word table in my script haaha. Now its working :smiley:

Leon, Could you please send me the code of your cronjob command :slight_smile: i feel yours will work more then the google one :smiley:
Thank you

1 Like

Glad to hear!

You just go into the crontab file:
sudo su
sudo crontab -e

Then you can set the reboot automation intervals. Just scroll to the end of the document and add the following line. You exchange the stars with the prefered values:
* * * * * sudo reboot

It’s configured like this:

  1. minutes (0-59)
  2. hours (0-23)
  3. day of the month (1-31)
  4. month (1-12)
  5. day of the week (0-7)

So to reboot every 6 hours the command should look like this:
* */6 * * * sudo reboot

To reboot every day at 12pm for example it would look like this:
* 12 * * * sudo reboot

Hope this helps :slight_smile:

2 Likes

Thanks a lot Leon :slight_smile:
i did the research and one thing i didnt get. Dont we need to run the startproxy.sh after we reboot?

You can add another line in the sudo crontab -e to let scripts start on boot:

@reboot python3 /home/pi/3proxy/startproxy.sh

1 Like

thanks leon, i am working on script to restart the usb itself instead of the whole raspberry. I will update you if i make it :smiley:

1 Like

Let me know! This would be the more elegant method :smiley: