Download Jar. Uses 9700K of libraries. Click here for Pure Java version (1750L/11K).
1 | !7 |
2 | |
3 | p { |
4 | SSHClient ssh = sshLogin("root", "botcompany.de"); |
5 | repeat with sleep 10 { |
6 | S s = trim(sshCommand(ssh, "uptime")); |
7 | print("Uptime: " + s); |
8 | consoleTitle(replacePrefix("0.", ".", dropAfterComma(trimSubstringAfter(s, "load average:"))) + " [botcompany.de]"); |
9 | } |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013027 |
Snippet name: | Test longer-running SSH session (print botcompany.de load) [OK] |
Eternal ID of this version: | #1013027/12 |
Text MD5: | 1a40fcab6805cfd9796c53000f9618db |
Transpilation MD5: | f6d72424f72da1bc291b9e70d0460c19 |
Author: | stefan |
Category: | javax / networking |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-22 15:41:14 |
Source code size: | 291 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 584 / 1414 |
Version history: | 11 change(s) |
Referenced in: | [show references] |