I want to print the output of a command named jnettop
into an html file.
I am very familiar with shell_exec()
and sort. But it doesnt work as the command that Im using doesnt have a bash mode like top that is described here .
The end goal is have a site that I go to and I see the information that jnettop would normally display in terminal. Here is the link to jnettops wiki page.
您可以将passthru()或exec()与输出参数peresent一起尝试。
the command that Im using doesnt have a bash mode like top
Sure it has: jnettop --display text
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.