Reputation: 321
Currently, I'm writing some software that is able to execute a remote installation via SSH (using JSCH as SSH library and Java as a programming language). To do this I have implemented:
What I want is to show dynamically the output of installation (shell output) and then show a popup to the user when the installation require a user input.
Is it possible to do this?
Upvotes: 0
Views: 241
Reputation: 140523
My answer is to question your whole approach: are you sure that you want to re-invent the wheel?
To satisfy your requirement, you actually have to fetch "console content" from your remote server; somehow display it to your local user; and sent that information back to write it to the remote console. Probably doable, but not exactly an easy undertaking.
And why all that effort? To implement another "configuration management" tool; along with the many others that already exist?
I think you should step back and consider not doing all of this yourself. You see, there are a lot of fine tools out there (puppet, chef, salt, ...) that are robust, well documented, used by many people for a long time. Instead of spending your time to mimic some of the functions of such tools; wouldn't it be better to learn about these tools; and use one of them directly?!
Upvotes: 1