Basically what I need is, I want to run a shell script present on remote linux machine along with that I need to pass one list collection as an argument to that script and fetch the result back in java code to print and store in object.
-
3Have you even googled this?Mena– Mena2016-09-12 10:56:35 +00:00Commented Sep 12, 2016 at 10:56
-
1yes.. but i am not getting that how shall i send or make it accessible text file from java to unix containing list of string for processing.Java_learner– Java_learner2016-09-13 03:30:16 +00:00Commented Sep 13, 2016 at 3:30
Add a comment
|
1 Answer
I think Old post in stackoverflow will help you on this
4 Comments
Java_learner
I have seen this but I am not sure, how to connect to remote linux machine before executing this code.
Abhilash Arjaria
Try This Solution :: codesandscripts.com/2014/10/…
Abhilash Arjaria
JSch is an excellent library for supporting remote connections over ssh, including the execution of remote commands (or shell scripts). There are numerous examples of how to use JSch at JSch Examples
Java_learner
Thanks for the information. I will try this and respond after that. Can you please also specify in which scenario we use process builder.. I mean when we are using process builder how connection is made with linux machine. Thanks again for the help!