staresy wrote:
>
> The trick to running the auto-update in Windows is to run a couple of
> batch files from the Windows start-up shell. The 1st batch file points
> to the relevant directory containing the ngrok and auto-update script.
> This file then goes on to run ngrok to open the tunnel and call a second
> file to run the updater script. This may seem a bit long winded (ie. why
> x2 batch files?) but the answer is that ngrok has to run first to
> establish the tunnel before updater can run, the problem is running
> ngrok from a batch file stops the batch file running (meaning you can't
> then run the updater script). So the solution is to call a 2nd batch
> file which calls a short delay (to let the tunnel get established) and
> then runs the updater script. It works fine, if you can think of a more
> elegant solution, let me know!
>
> Example batch files below:
>
> Batch File 1 (call this from the start-up shell):
>
> cd/
> CD C:\Google Drive\LMS Stuff\ngrok
> start /min batch2.bat
> ngrok start -region=eu server name
>
> Batch File 2 (called from batch file 1 above):
>
> cd/
> cd C:\Google Drive\LMS Stuff\ngrok
> timeout 5
> updater.py
>
Didn't try it, but wouldn't it work using a single batch file like
this?
Code:
--------------------
cd /d "C:\Google Drive\LMS Stuff\ngrok"
start ngrok start -region=eu server name
timeout 5
updater.py
--------------------
------------------------------------------------------------------------
reinholdk's Profile: http://forums.slimdevices.com/member.php?userid=36070
View this thread: http://forums.slimdevices.com/showthread.php?t=111016
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins