require alternate command for lsof


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers require alternate command for lsof
# 1  
Old 05-17-2007
require alternate command for lsof

Using lsof command i can find out which process-id is associated with the port.
Code:
lsof -i :51000

. But as part of process i cant have lsof in the server.

I am using sun solaris 8 and only kshell. Is there a way to find out which process is using the above port. as of now i am gettn port conflict. need to find out the process ?
# 2  
Old 05-17-2007
Check the manual for "pfiles" on solaris. It is similar, though no where near as 'nice' as lsof. The entry for ports in use are something like:

Code:
   3: S_IFSOCK mode:0666 dev:254,0 ino:19124 uid:0 gid:0 size:0
      O_RDWR
        sockname: AF_INET 10.1.2.3  port: 80

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Lsof command

Hi, I am trying to find the files in a specific directory that are currently in open state. I need this information to archive the old files that are not active in the directory. I get the following output when I try the command $ lsof +d '/var/tmp/'|awk '{print $9}'|sort -u NAME... (1 Reply)
Discussion started by: ryzen7
1 Replies

2. AIX

Lsof command giving while loop

Hello, There is a process in AIX which is actually a oracle database user session but is running very slow When I use lsof it give below output lsof /proc/21955180 In while loop:256 In while loop:256 In while loop:256 In while loop:256 Value of I :183 np:1024 Please... (1 Reply)
Discussion started by: Vishal_dba
1 Replies

3. Solaris

Difference between fuser and lsof command

Hi, Can anyone explain me the difference between fsuer and lsof commands. As per my knowledge both the commands are used to find the processes used by the current file system or user. Apart from that what is the major difference between these commands (3 Replies)
Discussion started by: rogerben
3 Replies

4. Shell Programming and Scripting

Require single command to start script in multiple servers

I have 9 servers, on each server a script with common name is available. I send a token file to all server from 1 particular server. so when a daemon job checks that token file is available then it triggers the script.. I want to know is there any command or script which I will run/execute on... (16 Replies)
Discussion started by: mirwasim
16 Replies

5. UNIX for Dummies Questions & Answers

require detailed description for df -k command

Hi, I have used df -k always just to check the % of disk space left. Recently i discovered that the sum availabl space and used space is not equal to 1K-blocks. Can anyone explain me the reason for this difference. Thanks. (3 Replies)
Discussion started by: shooter
3 Replies

6. Shell Programming and Scripting

Alternate work out for sed command

Iam trying to insert a line after #Cluster in the property file shown below #Node=Nodehostname:NodeProfilename Node=testNode:test_profile #Cluster=Cluster_Name:nodeName@ClusterMem1,nodeName@ClusterMem2,.... #DC=DCname:DCnodegrp:DCtemp DC=test_DC:test_NG:test_template i was using sed command... (12 Replies)
Discussion started by: SSSB
12 Replies

7. Shell Programming and Scripting

Alternate command for cut

Hello, I have a string below DUMMY=1,2,3,4,5,6 I want to extract fields 1-3 and put it as under in a file 1,2,3 I can do this using cut like below echo $DUMMY | cut -d, -f1-3 But I would be processing more than 15000 such entries and I found that "cut" was using more CPU. So anyone... (2 Replies)
Discussion started by: Mohammed
2 Replies

8. AIX

command lsof

hello Sorry but i don't understand very well the lsof command with the man. Can you explain to me what is the use of this command ? thank you (2 Replies)
Discussion started by: pascalbout
2 Replies

9. UNIX for Dummies Questions & Answers

require help about cut command

hi, im trying to cut the file using cut command in unix . the problem is i want to input the chacter list from another file and then using the postioins specified in this file i want to cut another file. for eg. cut -c(here i want to use a list being read from a file) listdata(this is the file i... (2 Replies)
Discussion started by: vikramchots
2 Replies

10. Solaris

Command to require OS info

Hi, I am new to UNIX environment. Can anybody tell me how can I check whether my OS is 32bit or 64bit? Regards, Malay Mary (4 Replies)
Discussion started by: malaymaru
4 Replies
Login or Register to Ask a Question