Unix command output to HTML !! sorry Off topic !!!
Unix command output to HTML !! sorry Off topic !!!
am 10.09.2007 19:36:50 von bnsarma
Greetings
I apologize for the off topic question. Tried googling, couldn't get
any helpful 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.
I highly appreciate if you can point me to right document or an
example.
Regards & Thanks
BN
Re: Unix command output to HTML !! sorry Off topic !!!
am 12.09.2007 17:17:33 von Glenn Jackman
At 2007-09-10 01:36PM, "BN" wrote:
> Greetings
>
> I apologize for the off topic question. Tried googling, couldn't get
> any helpful 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 "
`bdf`
"'
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
Re: Unix command output to HTML !! sorry Off topic !!!
am 12.09.2007 20:15:42 von Cyrus Kriticos
BN wrote:
>
> 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.
echo '
'
ssh user@host bdf | sed "s/$/
/"
echo '
'
--
Best regards | "The only way to really learn scripting is to write
Cyrus | scripts." -- Advanced Bash-Scripting Guide
Re: Unix command output to HTML !! sorry Off topic !!!
am 12.09.2007 20:18:18 von Cyrus Kriticos
BN wrote:
>
> 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.
ssh user@host bdf | sed "s/$/
/"
or
echo '
'
ssh user@host bdf
echo '
'
--
Best regards | "The only way to really learn scripting is to write
Cyrus | scripts." -- Advanced Bash-Scripting Guide