Click here to Skip to main content
15,887,392 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I tried to develop some program.
My requirement are:
I have .bat file in windows and .sh file in Ubuntu.
I have to remotely call either of the file through java using IP-address etc.
Example for detailed explanation:
I have A and B computers and I have to run the program from system A. In that program i have to remotely connect the system B using ip address etc...and I have to run batch file(windows) or .sh file(Ubuntu).

What I have tried:

C#
I had tried using Jsch but i am unable to connect to the windows or linux systems.
Posted
Updated 18-Oct-16 21:24pm

1 solution

Well, JCraft gently provides an example: JSch - Java Secure Channel - Examples - Exec.java[^].
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900