1 | static S sshCommand(SSHClient client, S command) ctex { |
2 | final Session session = client.startSession(); |
3 | try { |
4 | Session.Command cmd = session.exec(command); |
5 | ret IOUtils.readFully(cmd.getInputStream()).toString(); |
6 | } finally { |
7 | session.close(); |
8 | } |
9 | } |
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: | 364 / 387 |
Version history: | 6 change(s) |
Referenced in: | [show references] |