Re: Unix command output to HTML !! sorry Off topic !!!
At 2007-09-10 01:36PM, "BN" wrote:
> Greetings
>
> I apologize for the off topic question. Tried googling, couldn't get
> any ful info.
>
> I would like to display many unix command output on our Apache Web
> servers for a lot of UNIX Servers (HP-UX, SUN, AIX etc.,)
>
> Our Apache WEB Server (httpd) is running on GNU/LINUX (i686 i686 i386
> GNU/Linux)
>
> I have setup ssh and able to run ssh command to display the info on
> the webpage
> for example (ssh user@host bdf)
> But the output displayed on the page is not formatted.
>
> I am not sure how the output of several unix command can be
> dynamically formatted to HTML to display on the webpage.
Taking a wild stab:
ssh user@host 'echo "<pre>`bdf`</pre>"'
Or, configure Apache to serve those pages as text/plain
--
Glenn Jackman
"You can only be young once. But you can always be immature." -- Dave Barry
|