Script: reconnect to expressvpn when connection is dropped

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I am using a Raspberry Pi 3 connected to an expressvpn server 24/7.



Now and again when I check the connection I find that it has been dropped and expressvpn have killed the traffic. The loss could have been minutes, hours or days and I am unaware until I manually check.



If I find the vpn has been dropped, all I need to do is enter, "expressvpn connect" in a terminal to reconnect the service.



I would like to have a cron job check the traffic every hour and if stopped, simulate the reconnect command in a terminal.



I understand that expressvpn use a different method to instigate a vpn tunnel to that for a 'normal' openvpn.







share|improve this question























    up vote
    0
    down vote

    favorite












    I am using a Raspberry Pi 3 connected to an expressvpn server 24/7.



    Now and again when I check the connection I find that it has been dropped and expressvpn have killed the traffic. The loss could have been minutes, hours or days and I am unaware until I manually check.



    If I find the vpn has been dropped, all I need to do is enter, "expressvpn connect" in a terminal to reconnect the service.



    I would like to have a cron job check the traffic every hour and if stopped, simulate the reconnect command in a terminal.



    I understand that expressvpn use a different method to instigate a vpn tunnel to that for a 'normal' openvpn.







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am using a Raspberry Pi 3 connected to an expressvpn server 24/7.



      Now and again when I check the connection I find that it has been dropped and expressvpn have killed the traffic. The loss could have been minutes, hours or days and I am unaware until I manually check.



      If I find the vpn has been dropped, all I need to do is enter, "expressvpn connect" in a terminal to reconnect the service.



      I would like to have a cron job check the traffic every hour and if stopped, simulate the reconnect command in a terminal.



      I understand that expressvpn use a different method to instigate a vpn tunnel to that for a 'normal' openvpn.







      share|improve this question











      I am using a Raspberry Pi 3 connected to an expressvpn server 24/7.



      Now and again when I check the connection I find that it has been dropped and expressvpn have killed the traffic. The loss could have been minutes, hours or days and I am unaware until I manually check.



      If I find the vpn has been dropped, all I need to do is enter, "expressvpn connect" in a terminal to reconnect the service.



      I would like to have a cron job check the traffic every hour and if stopped, simulate the reconnect command in a terminal.



      I understand that expressvpn use a different method to instigate a vpn tunnel to that for a 'normal' openvpn.









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 5 at 17:38









      makem

      11




      11

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043887%2fscript-reconnect-to-expressvpn-when-connection-is-dropped%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043887%2fscript-reconnect-to-expressvpn-when-connection-is-dropped%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Trouble downloading packages list due to a “Hash sum mismatch” error

          How do I move numbers in filenames, in a batch renaming operation?