简体   繁体   English

格式化linux命令的输出

[英]Formating output of a linux command

I am developing a web application.By using this I want to execute a command in remote machine LINUX machine.Now my Requirement is that I want to display the output of the command in my webpage(JSP page). 我正在开发一个Web应用程序。使用此应用程序,我想在远程计算机LINUX计算机上执行命令。现在,我的要求是我想在网页(JSP页面)中显示命令的输出。 Is there any java API to simplify the parsing of the output? 是否有任何Java API可以简化输出的解析?

I have not familiar with JSP. 我对JSP不熟悉。 But if you are developing web applications, you must be using HTML/CSS. 但是,如果要开发Web应用程序,则必须使用HTML / CSS。 Have the output of Linux command store in a variable. 将Linux命令存储的输出存储在一个变量中。 Then you are done with the Linux command. 然后,完成Linux命令。 Now move to JAVA for parsing. 现在移至JAVA进行解析。 I am sure that there are great modules available for parsing. 我确信有很多很棒的模块可以解析。 Then after that format the output using HTML, CSS. 然后,使用HTML,CSS格式化输出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM