Access terminal in eclipse

时间:2017-05-16 09:23:53

标签: java eclipse logging ssh jsch

In my current project, I use Putty to connect (ssh) to the server on client side (using AnyConnect for VPN). Then I use

"tail -f /usr/local/jboss/server/default/log/server.log" to check the logs.

I validate the request(POST) created by the api by checking if all parameters passed in the request are correct and also check the response is as expected.

I need to automate this procedure using java and Eclipse.

To summarize I need help with the following :

1) How to create a connection to the server and execute the tail command, so that I have access to the log.

2) How to extract only the request and response and validate the parameters.

Also suggest if there are some other ways/tools to achieve this and how. Thanks.

0 个答案:

没有答案