【问题标题】:How to embed script output file into HTML?如何将脚本输出文件嵌入 HTML?
【发布时间】:2014-08-13 06:44:48
【问题描述】:

我有一个 shell 脚本,它将生成以下输出文件。我想将文件放在 html 代码中。请帮助我。我的输出如下所示

Sno.  Application               IPAddress     Status
----  -----------               ---------     ------
1     ManageDeviceAssociation   10.101.42.3   Up
2     ManagePlay                10.101.42.4   Up
3     ManageSettings            10.101.42.5   Up
4     SOLRUserProfileInfo       10.101.42.6   Up
5     SOLRPhysicalDeviceInfo    10.101.42.7   Up

【问题讨论】:

  • 你能不能 plzz alobarate... 作为 html 的新手
  • 查看我的编辑在 src 中给出完整路径。
  • 你要执行什么脚本或html页面......请去google一下......
  • @user3933685,这会帮助你stackoverflow.com/questions/6235785/…

标签: html shell


【解决方案1】:

你可以使用<embed>标签。

<embed src="test.txt">

将其复制到 test.html 中并在浏览器中打开。

!DOCTYPE html>
<html>
<body>

<embed src="path/to/your/file/list.txt">

</body>
</html>

现场观看here

【讨论】:

    猜你喜欢
    • 2014-09-02
    • 2016-10-07
    • 2017-01-09
    • 2013-11-25
    • 1970-01-01
    • 1970-01-01
    • 2011-04-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多