LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-26-2007, 09:08 AM   #1
ohswrestler2009
Member
 
Registered: Oct 2007
Posts: 39

Rep: Reputation: 15
Finding PID


Hey, I'm trying to follow your Tutorial on setting up Samba.
http://www.linuxquestions.org/linux/...nd_running_NOW
I'm at the part where its telling me to restart the inetd by typing the command:
kill -1 inetd_PID
It says to get the PID of the process inetd from my process list,
How do I find out what the PID is?
Thanks
 
Old 10-26-2007, 09:10 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
run "pidof inetd" or read the output of "ps aux". note that only (afaik) slack and debian use inetd still. all others would use xinted.
 
Old 10-26-2007, 09:13 AM   #3
ohswrestler2009
Member
 
Registered: Oct 2007
Posts: 39

Original Poster
Rep: Reputation: 15
I ran the first command, "pidofinetd" and nothing happend.
But then I ran the 2nd one, "ps aux" and a long list of processes came up.
I saw "ps aux" on the list, was that it?
 
Old 10-26-2007, 09:56 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by ohswrestler2009 View Post
I ran the first command, "pidof inetd" and nothing happend.
If you did not get any number, maybe a process called inetd does not exist. Following the note from acid_kewpie maybe you have xinetd instead. Anyway, which distribution are you running on?
Quote:
But then I ran the 2nd one, "ps aux" and a long list of processes came up. I saw "ps aux" on the list, was that it?
To extract only the information you're interested in you can pipe the output to grep, e.g.
Code:
ps aux | grep inetd
Indeed the ps command gives the status of all the (hundreds) of processes running on your system, but the output can be filtered by the grep command or - better - by other options to the ps command itself, as for
Code:
ps -C inetd
See man ps for details.
 
Old 10-26-2007, 12:24 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if you ran "pidofinetd" then blatantly nothign will happen as that's not a real command, unlike what i said which was "pidof inetd"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
logging off by script or finding PID of session bob_man_uk Red Hat 6 10-27-2005 04:37 AM
Advanced question: finding pid of an x window PFudd Linux - Software 3 05-31-2005 06:36 PM
finding pid with program name durden2.0 Linux - Newbie 1 08-04-2003 09:38 PM
Finding the first pid corrierich Linux - General 2 03-06-2003 03:43 AM
finding a PID and killing it tangle Linux - General 3 01-25-2003 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration