PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > Unix command output to HTML !! sorry Off topic !!!
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

Unix command output to HTML !! sorry Off topic !!!

Réponse
 
LinkBack Outils de la discussion
Vieux 10/09/2007, 18h36   #1
BN
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Unix command output to HTML !! sorry Off topic !!!

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.

I highly appreciate if you can point me to right document or an
example.

Regards & Thanks
BN

  Réponse avec citation
Vieux 12/09/2007, 16h17   #2
Glenn Jackman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
Vieux 12/09/2007, 19h15   #3
Cyrus Kriticos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Unix command output to HTML !! sorry Off topic !!!

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 '<pre>'
ssh user@host bdf | sed "s/$/<br>/"
echo '</pre>'

--
Best regards | "The only way to really learn scripting is to write
Cyrus | scripts." -- Advanced Bash-Scripting Guide
  Réponse avec citation
Vieux 12/09/2007, 19h18   #4
Cyrus Kriticos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Unix command output to HTML !! sorry Off topic !!!

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/$/<br>/"


or


echo '<pre>'
ssh user@host bdf
echo '</pre>'

--
Best regards | "The only way to really learn scripting is to write
Cyrus | scripts." -- Advanced Bash-Scripting Guide
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h32.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11384 seconds with 12 queries