LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Getting double entries for process with ps -A (https://www.linuxquestions.org/questions/linux-software-2/getting-double-entries-for-process-with-ps-a-320128/)

dr_zayus69 05-04-2005 02:54 PM

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

Tinkster 05-04-2005 03:24 PM

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

Adony 05-04-2005 06:36 PM

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


All times are GMT -5. The time now is 04:19 AM.