rationaleemotions / simplessh Goto Github PK
View Code? Open in Web Editor NEWA Java library to help run commands, perform upload/download against a Remote UNIX Host
License: Apache License 2.0
A Java library to help run commands, perform upload/download against a Remote UNIX Host
License: Apache License 2.0
The entire use case is well captured in http://stackoverflow.com/a/28852678
Need support for this use case.
Currently the connections to the remote host are made on a per command execution basis. This is very costly and it would be good if there is a connection Pool for better performance.
Shouldn't this line in JSchBackedSshKnowHowImpl read Math.min for the poolSize. This appears that it will run into too many connection type errors.
int poolSize = Math.max(MAX_SIZE, localFiles.length);
ExecResults results = ssh.executeCommand("ls -la");
System.out.println(results.getOutput());
// Able to get the output.
results = ssh.executeCommand("ls- la");
System.out.println(results.getOutput());
//Empty List !!
results = ssh.executeCommand("uname -a");
System.out.println(results.getOutput());
// Able to get the output.
When the above code is executed, the second command does not return any output (because it has errors), but since there are no visible warnings, the user is at a loss on what happened.
When the SimpleSSH is used in a main method, the main thread completes but the Jsch still runs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.