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