Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将脚本输出文件嵌入HTML?_Html_Shell - Fatal编程技术网

如何将脚本输出文件嵌入HTML?

如何将脚本输出文件嵌入HTML?,html,shell,Html,Shell,我有一个shell脚本,它将生成以下输出文件。我想将该文件放入html代码中。请帮助我。我的输出如下所示 Sno. Application IPAddress Status ---- ----------- --------- ------ 1 ManageDeviceAssociation 10.101.42.3 Up 2 ManagePlay 10.101.42.

我有一个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
您可以使用
标记进行此操作

<embed src="test.txt">

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

!DOCTYPE html>
<html>
<body>

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

</body>
</html>
!DOCTYPE html>

现场观看

你能不能让阿洛巴拉特。。。由于我是htmlsee新手,我的编辑在src中给出了完整的路径。您想执行什么脚本或html页面…请用谷歌搜索它…@user3933685,这将对您有所帮助