Log in

View Full Version : Getting data from Unix server



contracer11
05-07-2008, 01:36 PM
Hi:

I need get this data from an Unix server:
solaris> df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t1d0s0 9.6G 9.3G 210M 98% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 1.8G 1.2M 1.8G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
fd 0K 0K 0K 0% /dev/fd
/dev/dsk/c0t1d0s5 2.9G 923M 1.9G 33% /var
swap 1.8G 2.0M 1.8G 1% /tmp
swap 1.8G 64K 1.8G 1% /var/run
swap 1.8G 0K 1.8G 0% /dev/vx/dmp
swap 1.8G 0K 1.8G 0% /dev/vx/rdmp

How could I get this data from the Unix server to the browser ?

thank you

tfit
05-13-2008, 08:21 AM
Maybe, php exec? Or dump it into a file and do a fopen?

tfit
05-13-2008, 10:28 AM
While rethinking about it forget it. Bad solutions. So second try:)
Why not dump it into a file? Style your output, prefix and suffix with html tags and open it in lynx. Put it in a file and run from *sh