1

I have logs in folder /home/a/b (located in a remote server)

I want to display logs in my web browser using Java. To get data in the folder /home/a/b and to display them on my web page, what are some methods(API) I can use?

Jin Lee
  • 3,194
  • 12
  • 46
  • 86

1 Answers1

1

The simplest approach I can imagine is using a SSH API like JSch, but I don't know how performatic this is. Anyway, here goes a good example:

https://stackoverflow.com/a/9019095/7528396

Note that you can read the remote file and render line by line.