-1

Possible Duplicate:
How can I execute Linux commands on a remote machine using Java?

In my linux client computer, I am trying to invoke a linux shell on the other linux server.

Then I would show the result on the client computer.

The command looks like this: grep 11111 userId.log

Are there any java open source project can do this?

1
  • Do you have anyway of running any code on the server beforehand? If so its very easy to do with std java libraries Commented Sep 28, 2012 at 11:57

1 Answer 1

0

If you can ssh to the other computer, you can use the Jsch library to do this in java.

Sign up to request clarification or add additional context in comments.

2 Comments

thanks Do you have some examples :)
@Felix: yes, you can click on a link in the answer above and then click... Examples

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.