Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Running ssh command in a java application

807606Apr 16 2007 — edited Apr 17 2007
Hi there!

I am trying to run a ssh command from a java application cause I need to store the result.

Actually I can run this command in the cygwin shell so I need to open the shell and run the command, all trough java.

so, what my process needs to do is:
1) open the cmd
2) run C:\cygwin\cygwin.bat
3) execute the ssh command
ssh -l fip-user ipdb fip 4270
4) print the result of the ssh command.

Note that the cygwin opens in the same command line window and so will print it's result to the same process inputstream

Message was edited by:
RBervini
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 15 2007
Added on Apr 16 2007
2 comments
243 views