Results 1 to 3 of 3

Thread: Getting data from Unix server

  1. #1
    Join Date
    Feb 2008
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Getting data from Unix server

    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

  2. #2
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default

    Maybe, php exec? Or dump it into a file and do a fopen?

  3. #3
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •