0

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.

Community
  • 1
  • 1
Cripto
  • 3,581
  • 7
  • 41
  • 65

2 Answers2

0

You might try passthru() or exec() with the output argument peresent.

Michal
  • 3,262
  • 4
  • 30
  • 50
0

the command that Im using doesnt have a bash mode like top

Sure it has: jnettop --display text.

Armali
  • 18,255
  • 14
  • 57
  • 171