View Single Post
  #869  
Old 06.09.2019, 14:13
lukjod lukjod is offline
Baby Loader
 
Join Date: Sep 2019
Posts: 9
Default reconnect script

is this possible to use event scripter for call bash script on qnap nas to reconnect router.
I have to call bash script

/share/CACHEDEV1_DATA/.qpkg/b715_reboot/reboot_router.sh

which calls python package to restart huawei b715 router

Code:
#!/bin/bash
python3.7 /share/CACHEDEV1_DATA/.qpkg/b715_reboot/reboot_router.py
How to make it right? shoud it contain RECONNECT_BEFORE
Any help needed as all my trials with other approach with
ExternBatchReconnect.json
Code:
{
  "BATCH_COMMAND" : "./reboot.router.sh",
  "TERMINAL" : "/bin/bash",
  "WAIT_FOR_RETURN_SECONDS" : 20,
  "EXECUTE_IN" : "/share/CACHEDEV1_DATA/.qpkg/b715_reboot"
are unsuccessful
Reply With Quote