My script for taking snapshot from TOPAS looks like this:#!/usr/bin/bashwhoamiexport TERM=xterm(sleep 3; echo q)| topas -Emi 2 | \   tr -d '\r'                                             | \   sed 's/\'$'\033''\[[0-9][0-9]G/       /g'              | \   sed 's/'$'\033''/\'$'\n''/g'                           | \   grep -e '^en' -e '^lo' -e '^Network'                   | \   awk '{ printf(%-8s%10s%10s%10s\n, $1,$2,$5,$6); }'   | \cat... fine tuning of removing special characters, and its result inside bash terminal is great:rootNetwork       KBPS     KB-In    KB-Outlo0         3652.9    1826.0    1826.9en1         2133.4    2109.0      24.4en2            0.1       0.1       0.0en0            0.0       0.0       0.0However, I wanted to shown it at my admin-web with simple:<?php header('Content-type: text/plain'); echo `myscript.sh`; ?>But web result is bad (no network interfaces shown):apacheNetwork       KBPS     KB-In    KB-OutWrapping SUID bit and managing to run it as 'root' does not help, same problem persists.So I think that it is not a privilege issue.Maybe it is something about TOPAS behaviour with TERMINAL (not sure what terminal $TERM should be to make this happen)Does anyone have a clue?
AiX topas snapshot to web
bash;networking;aix;xterm