git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7b8870
)
"netstat -apn" emulation for Solaris
author
short
<>
Thu, 4 Mar 2004 13:22:38 +0000
(13:22 +0000)
committer
short
<>
Thu, 4 Mar 2004 13:22:38 +0000
(13:22 +0000)
bin/netstatapn
[new file with mode: 0755]
patch
|
blob
diff --git a/bin/netstatapn
b/bin/netstatapn
new file mode 100755
(executable)
index 0000000..
1638b9b
--- /dev/null
+++ b/
bin/netstatapn
@@ -0,0
+1,4
@@
+#! /bin/bash
+pfiles 2>/dev/null `cd /proc;echo *` \
+ |awk '/^[0-9]/{idpid=$1;idproc=$2}/ AF_INET6? .*port: /{printf "%6s%-50s %15s:%d\n",idpid,idproc,$3,$5}' \
+ |sort -t : -k 3 -n