2
I needed a framework
to be able to open remote sessions on (Unix-based) servers and run commands remotely (if possible as root
even).
Does anyone know any mature who can serve this purpose?
Main objective:
What happens is that I have a web application running on a server and I need to collect data on other servers. This data is pre-processed on a shell
script
and store the results in a file.
There are more than 10 servers, and it would be excellent/ideal that the execution of this script
on each of the servers was made from the application, instead of running it machine by machine and then from the application read the result. The idea is to open a session for each of the machines and run the pre-processing and then read the results.
What I got:
I currently use the jsch
0.1.42
and has given me a serious problem, I cannot run existing scripts on the servers whose some operations involve writing (creating new files) on the system.
Note: My main problem at the moment is that the execution of jsch 0.1.42
does not run successfully, but when I enter directly into the machine it runs perfectly.
As for permissions I have also analyzed and to remove doubts the permissions is everything for everyone(777).
I believe (I hope it is not the result of my despair) that the problem is with the jsch 0.1.42
and would like to change and move on to another, where someone already has some experience.
Because it is @utluiz, the point is that you can not apply the first solution because it is a sensitive server (very sensitive) and the owners will not accept anything there running too much, for sure. The second point is interesting, but I don’t know much of these languages,and even learning and redoing almost everything I’ve ever done would be "dull". I’m considering using Pyhton.
– Cold