static S sshCommand(SSHClient client, S command) ctex { final Session session = client.startSession(); try { Session.Command cmd = session.exec(command); ret IOUtils.readFully(cmd.getInputStream()).toString(); } finally { session.close(); } }
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: | #1013026 |
Snippet name: | sshCommand |
Eternal ID of this version: | #1013026/7 |
Text MD5: | c0354320a56f166f36c8c130c0b4a17d |
Author: | stefan |
Category: | javax / networking |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-22 12:04:59 |
Source code size: | 270 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 365 / 387 |
Version history: | 6 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |