|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|