|
| cool Statistics |
| | coolcommands: | 1338 | | Categories: | 83 | | Total queries: | 620226 | | Members: | 22813 | |
|
|
|
 |
|
|
Search coolcommands.com
 |
Submitted by:
Mariom   |
coolcommand
how to find the process id by used port number in AIX |
Description
To find the process which is using a particular port in AIX:
# for PID in $(netstat -Aan | grep *.port# | cut -d " " -f1); do rmsock $PID tcpcb | cut -d " " -f9 | xargs ps ; done |
Example
for PID in $(netstat -Aan | grep *.5666 | cut -d " " -f1); do rmsock $PID tcpcb | cut -d " " -f9 | xargs ps ; done |
Return to search results
 |  |  |  |
Random coolcommands
coolcommand: how to test if an integer variable is less than another integer variable in a shell script
Example: test $int1 -lt $int2; [ $int1 -lt $int2 ]
[show me the details] |
coolcommand: how to login to a Sybase database
Example: isql -U sa password
[show me the details] |
coolcommand: lt.pl - how to take perl localtime and display in human readable format
Example: lt.pl
[show me the details] |
coolcommand: how to mount a cdrom manually in Sun Solaris
Example: mount -o ro /dev/dsk/c0t6d0s1 /mnt/cdrom
[show me the details] |
|
|
coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts
|  |  |  |  |
|
|
|
|
 |
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1160 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 14 |
Top 5 Searches
|
| Category Solaris | 51943 |
| Category AIX | 49010 |
| Category General UNIX | 47572 |
| solaris | 23554 |
| aix | 22739 |
|
|
|
|