LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2005, 02:54 PM   #1
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
Getting double entries for process with ps -A


hi i just did ps -A and i noticed i have multiple entries for a few processes. Some as much as 3 or 4 as you can see from the output. Does anyone know why this happened? (just rebooted the computer if that is significant) Also is there a kill command to kill duplicate processes so i don't have to go through and kill the duplicates one by one? thanks for any help in advance.

[jeff@localhost jeff]$ ps -A
PID TTY TIME CMD
1 ? 00:00:05 init
2 ? 00:00:00 ksoftirqd/0
3 ? 00:00:00 events/0
4 ? 00:00:00 kblockd/0
6 ? 00:00:00 khelper
5 ? 00:00:00 khubd
7 ? 00:00:00 pdflush
8 ? 00:00:00 pdflush
10 ? 00:00:00 aio/0
9 ? 00:00:00 kswapd0
122 ? 00:00:00 kseriod
159 ? 00:00:00 kjournald
1290 ? 00:00:00 kjournald
1698 ? 00:00:00 dhclient
1745 ? 00:00:00 syslogd
1749 ? 00:00:00 klogd
1770 ? 00:00:00 portmap
1790 ? 00:00:00 rpc.statd
1817 ? 00:00:00 rpc.idmapd
1912 ? 00:00:00 smartd
1922 ? 00:00:00 acpid
1934 ? 00:00:00 cupsd
2122 ? 00:00:00 sshd
2137 ? 00:00:00 xinetd
2156 ? 00:00:00 sendmail
2165 ? 00:00:00 sendmail
2176 ? 00:00:00 gpm
2187 ? 00:00:00 crond
2209 ? 00:00:00 xfs
2228 ? 00:00:00 atd
2247 ? 00:00:00 dbus-daemon-1
2263 ? 00:00:00 mdadm
2293 tty1 00:00:00 mingetty
2299 tty2 00:00:00 mingetty
2310 tty3 00:00:00 mingetty
2311 tty4 00:00:00 mingetty
2312 tty5 00:00:00 mingetty
2313 tty6 00:00:00 mingetty
2314 ? 00:00:00 gdm-binary
2512 ? 00:00:00 gdm-binary
2523 ? 00:00:14 X
2553 ? 00:00:00 gnome-session
2601 ? 00:00:00 ssh-agent
2605 ? 00:00:01 gconfd-2
2608 ? 00:00:00 gnome-keyring-d
2610 ? 00:00:00 bonobo-activati
2612 ? 00:00:01 metacity
2614 ? 00:00:00 gnome-settings-
2621 ? 00:00:00 fam
2690 ? 00:00:00 xscreensaver
2714 ? 00:00:01 gnome-panel
2716 ? 00:00:01 nautilus
2718 ? 00:00:00 magicdev
2720 ? 00:00:00 eggcups
2722 ? 00:00:00 pam-panel-icon
2724 ? 00:00:01 rhn-applet-gui
2725 ? 00:00:00 pam_timestamp_c
2728 ? 00:00:00 gnome-vfs-daemo
2756 ? 00:00:00 mapping-daemon
2758 ? 00:00:00 clock-applet
2760 ? 00:00:00 notification-ar
2762 ? 00:00:00 mixer_applet2
2769 ? 00:00:01 wnck-applet
2805 ? 00:00:02 gaim
2808 ? 00:00:00 firefox
2830 ? 00:00:00 run-mozilla.sh
2835 ? 00:00:18 firefox-bin
3320 ? 00:00:00 gnome-terminal
3321 ? 00:00:00 gnome-pty-helpe
3322 pts/2 00:00:00 bash
3365 ? 00:00:00 sendmail
3366 ? 00:00:00 sendmail
3368 ? 00:00:00 procmail
3369 ? 00:00:00 procmail
3370 ? 00:00:00 sendmail
3373 ? 00:00:00 procmail
 
Old 05-04-2005, 03:24 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Which ones do you want to send to Hades in the
first place? The getty's are just the Fullscreen consoles.
And in terms of the "mail" ... that's just the way they work,
you don't want to kill them, either.



Cheers,
Tink
 
Old 05-04-2005, 06:36 PM   #3
Adony
Member
 
Registered: Apr 2004
Location: Portugal
Distribution: Gentoo 2004.2 - working on LFS 6
Posts: 126

Rep: Reputation: 15
Some processes may be childs of another ones! Use the swich --forest to see this.

You can also use the killall command to kill multiple processes with a single shot
See the man for further info
 
  


Reply



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
how a father process know which child process send the signal SIGCHLD icoming Programming 10 07-20-2010 07:26 AM
shell script to read ps -e output and determine process double processes. dr_zayus69 Programming 1 09-21-2005 05:37 PM
Double the desktop, not double the fun! bizshop SUSE / openSUSE 3 08-26-2005 12:22 PM
Double entries for xine in Konqueror context menus? darkmatter333 SUSE / openSUSE 2 03-27-2005 11:12 AM
double entries at reverse zone by BIND 9 ccc Linux - Networking 0 01-08-2004 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:04 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