new & opt.

- new: ssh discontinuity test
- opt.: server cmds
- opt.: check ssh client status before exec cmds
- new: #124 notify on discontinuity
This commit is contained in:
lollipopkit
2023-08-17 21:36:00 +08:00
parent b78949cf0c
commit 46cffb836c
13 changed files with 141 additions and 98 deletions

View File

@@ -6,7 +6,8 @@ const serverBoxDir = r'$HOME/.config/server_box';
const shellPath = '$serverBoxDir/mobile_app.sh';
const statusCmds = [
'cat /proc/net/dev && date +%s',
'date +%s',
'cat /proc/net/dev',
'cat /etc/os-release | grep PRETTY_NAME',
'cat /proc/stat | grep cpu',
'uptime',