Networking :: Find The PID For All Processes Running For A Particular Port?
Apr 15, 2010How can I find the PID for all processes running for a particular port?
View 3 RepliesHow can I find the PID for all processes running for a particular port?
View 3 Replieshow can i find on a linux system the processes that are using 8080 port (ex a web server)
View 2 Replies View RelatedPossible Duplicate: Finding the process that is using a certain port in Linux I'm using Ubuntu Linux 11.04. How do I write a shell script expression that will find the process running on port 4444 and then kill the process?
View 4 Replies View RelatedI don't find a lot of information available regarding a service called pipe_server.When I send UDP packets without specifically a source or destination port, the packet capture from the machine, I send the UDP packet shows the following:
src port: pipe_server(2010)
dest port: pipe_server(2010)
More information related how send packets : I use raw sockets. I don't specify ports.Does the kernel fill the src and dest ports for me? Do all machines have a port 2010 that will listen for UDP packets?
I have a simple server running Ubuntu Server. Usually the server connects to the network by Wifi, so there is usually no cable connected to the Ethernet port. I noticed that there is a dhclient3 running on eth0 anyway. It is causing undesirable disk activity. Obviously, it is never going to get a response as long as no cable is connected. I can kill the responsible process manually, but I wonder first what is starting the process and how I can prevent it from being started. If there is a way to get the server to boot without starting this process, I wonder whether this is the right solution. Connecting to the network by Ethernet is the failsafe when Wifi doesn't work. I guess what I would like to see would be a way for the server to detect when eth0 does not have a cable connected and not start dhclient in that case, but to activate dhclient when a cable is connected.
View 4 Replies View RelatedI enabled D-Link (DSL-502T) router web management (I am aware of security implication). I was able remotely to login to the router (by typing http://23.45.xx.6y) before changing the default number 80. Then I changed the port number from the default value 80 to 21908 (https option is not available) for better security, and when I tried to login to the router by typing this :
http://23.45.xx.6y:21908
Yes I am aware that if I am physically near to the router then I can check that , but this is not the case with me. How can I make sure that I had changed port number form 80 to 21908? Does NMAP do a trick to reveal which port is used for web management ? or are there other better options?
My first time installing centos server and adding it to xp home network. I am new to setting up my own network in general. I have a home windows wired ethernet xp network (simple linxs router) with 2 xp boxes and one centos5 box all connected to the same router. I just set up the centos box running tomcat on port 8080. I need to do two very basic things at this point, but am not sure what I need to do:
What do I need to do so I can:
1. Connect in firefox on one of my xp boxes and call the tomcat server running on my centos box?
2. Be able to ftp to centos box from either of my xp boxes?
I'm trying to open up some ports to connect via vnc to a server running Centos 5.5. I've edited /etc/sysconfig/iptables everything *looks* fine, but I still can't seem to get access to the port I've opened (I added some newlines for clarity between commands):
[Code]....
GNU/linux kernel 2.6, Slackware 12.0.Hi:How do I know what processes are running?
View 6 Replies View RelatedI want to do a simple port redirect, i.e. whatever comes trough whatever interface on port AAAA will get redirected to port BBBBI thought that iptables -t nat -I PREROUTING --source 0/0 --destination 0/0 -p tcp --dport AAAA -j REDIRECT --to-ports BBBBhowever it doesn't work, e.g. nc -v -w2 -z localhost AAAA gives:
nc: connect to localhost port AAAA (tcp) failed: Connection refused
while
nc -v -w2 -z localhost BBBB
[code]....
I list all the instances of a running process my doing:ps -ef | grep myprogramThis lists all them.how can I simply output a count of how many are running?
View 2 Replies View RelatedDoes Debian 6 "Squeeze" automatically run boot processes in parallel if not how do I
configure it to do so. Here is the quote from my /etc/init.d/rc :
# Specify method used to enable concurrent init.d scripts.
# Valid options are 'none' and 'makefile'. Obsolete options
[code]...
I would like to do the following: Create a banner for any user logging in through ssh which warns him/her about the number of processors being used already by other users (or conversely the number of free processors). For example, if a user logged in he would then see a message like: Warning! 7 out of 8 processors are in use.I already figured out how to do a banner and with ps -e -o pcpu I can get all processes' %CPU usage. I think I would like to count the number of processes which have more than 90% CPU usage and output this number ("7" in the example) in the banner
View 7 Replies View RelatedTo: The Cog >>>
Code:
The Cog, heres the reszults for ps -ef | grep tty:
yo mama@blah:~$ ps -ef | grep tty
[code]....
Ubuntu 10.10. I am curious if there is kind of task manager in ubuntu I can see running processes etc? Like windows task manager?
View 5 Replies View RelatedMy University gives us access to a Linux server, named stud1.
Code:
me@stud1:~$ uname -a
Linux stud1.some.univ.ac 2.6.9-89.31.1.ELsmp #1 SMP Mon Oct 4 21:41:59 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
Apparently I was logged in, and never logged out sometime:
Code:
me@stud1:~$ who
<snip>
me pts/37 Jan 30 13:27 (6.6.66.66)
<snip>
me pts/58 Dec 30 19:13
but when trying to find out why I'm still logged in, I can't find it:
Code:
me@stud1:~$ ps faux |grep me
root 30030 0.0 0.0 51128 4360 ? Ss 13:27 0:00 \_ sshd: me [priv]
me 30033 0.0 0.0 51132 2336 ? S 13:27 0:00 \_ sshd: me@pts/37
[code]....
how can I logout this unused session?
I have p1,p2,p3,p4 some processes created by me in C. p1, p2, p3 are started individually from several consoles. And I want process p4 to terminates processes p1, p2, p3 if they are running. Which is the easiest way to accomplish that? put all processes in the same process group and send from p4 a kill signal to the group. But I couldn't do that because I cannot call successfully setpgid(getpid(), 15000) from p1-p4. It's there some way to put them in the same group? the processes don't have a child-parent relationship, they are launched manually from consoles.
View 1 Replies View RelatedWhen I ps -e, I see a whole bunch of processes, many more that when I ran Slackware.Is there a list of processess I can look at to see what they are and what ones I dont need, instead of googling each one and getting some cryptic explanation?
View 2 Replies View Relatedis there any possible way to hide currently running processes from an user? This means I do not want him to know about what programs/processes does any other user but him run. In short words if that user runs 'ps -aux' he should get only his processes.
View 3 Replies View RelatedI'm looking for a command that will give me a list of users (unique, dont name my user account 60 times) that are running processes on a system.
View 5 Replies View RelatedWhen I open top and look at the running processes, there a bunch that are -5 in the nice and 0 with everything else.
[Code]....
Ran the most recent updates several days ago and now System Monitor show my CPU at %100 constantly although it shows no processes running.
View 9 Replies View RelatedFirst time Ubuntu user (used to be on debian earlier).
I like that everything works out of the box (had to install codecs etc, but thats standard); but I dont like that there are 260 processes running. Is there a utility to stop unnecessary processes from running in Ubuntu 10.10? I used rcconf but there did not seem to be a whole lot of startup processes that were enabled. Yet somehow I am running 260 processes now.
Even if I log into fluxbox, I get 200+ processes running.
I am trying to get a list of running processes using audio (using gstreamer), just like in gnome-volume-control, under applications, but have so far been unsuccessful in finding anything in either the gtk or gstreamer library, anyone out there who can point me in the right direction?
View 1 Replies View RelatedThe command used to view processes running on the Linux machine is?
View 8 Replies View Relatedhow to write a shell script the searches for processes running on my system. I really don't know where to start. can anyone give me a hand and explain how the script works?
View 3 Replies View RelatedI've a Linux box with few users (with shell). I would like to prevent normal users see all the processes running on the box. How can I implement this?
View 1 Replies View RelatedWhile executing df command on an AIX Console, by mistake I ended the line with an ampersand:
[Code]...
How can I find out which version of Firefox my Ubuntu 10.04 is running?
View 2 Replies View RelatedI have written this script to monitor Apache2:
Code:
#!/bin/bash
#count lines that show apache2 but not the fgrep itself
let i=`ps aux | fgrep apache2 | fgrep -v grep | wc -l`
if [ "$i" -gt 0 ]
then
#log something
[Code]...
It has all been working fine until recently when Apache is becoming unresponsive. I manually ran ps to check and there were 3 processes. However when I ran apache2ctl graceful I got the message 'httpd not running, trying to start' Is there a better way to check if a daemon is up?