[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Grep BUG?!
From: |
TD - Sales International Holland B.V. |
Subject: |
Grep BUG?! |
Date: |
Tue, 8 Jan 2002 14:56:07 +0100 |
Hey there,
think something is wrong with my grep....
Check this: :=)
bash-2.05# grep --version
grep (GNU grep) 2.4.2
Copyright 1988, 1992-1999, 2000 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
A listing of my processes (pay attention to mozilla, i have several... from
komodo (IDE www.activestate.com) and netscape:
bash-2.05# ps -Af
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Jan07 ? 00:00:03 init [3]
root 2 1 0 Jan07 ? 00:00:00 [keventd]
root 3 1 0 Jan07 ? 00:00:00 [kapm-idled]
root 4 0 0 Jan07 ? 00:00:00 [ksoftirqd_CPU0]
root 5 0 0 Jan07 ? 00:00:01 [kswapd]
root 6 0 0 Jan07 ? 00:00:00 [bdflush]
root 7 0 0 Jan07 ? 00:00:00 [kupdated]
root 81 1 0 Jan07 ? 00:00:00 /usr/sbin/syslogd
root 84 1 0 Jan07 ? 00:00:00 /usr/sbin/klogd -c 3
root 86 1 0 Jan07 ? 00:00:00 /usr/sbin/inetd
root 89 1 0 Jan07 ? 00:00:00 /usr/sbin/sshd
root 93 1 99 Jan07 ? 1-05:02:30 /root/dnetc/dnetc -noquiet
-c 6
root 95 1 0 Jan07 ? 00:00:00 /usr/sbin/crond -l10
daemon 97 1 0 Jan07 ? 00:00:00 /usr/sbin/atd -b 15 -l 1
root 104 1 0 Jan07 ? 00:00:00 sendmail: accepting
connections
root 108 1 0 Jan07 ? 00:00:00 /usr/sbin/apmd
root 116 1 0 Jan07 ? 00:00:00 /usr/sbin/httpd
root 118 1 0 Jan07 tty1 00:00:00 -bash
root 119 1 0 Jan07 tty2 00:00:00 /sbin/agetty 38400 tty2 linux
root 120 1 0 Jan07 tty3 00:00:00 /sbin/agetty 38400 tty3 linux
root 121 1 0 Jan07 tty4 00:00:00 /sbin/agetty 38400 tty4 linux
root 122 1 0 Jan07 tty5 00:00:00 /sbin/agetty 38400 tty5 linux
root 123 1 0 Jan07 tty6 00:00:00 /sbin/agetty 38400 tty6 linux
nobody 124 116 0 Jan07 ? 00:00:00 /usr/sbin/httpd
nobody 125 116 0 Jan07 ? 00:00:00 /usr/sbin/httpd
nobody 126 116 0 Jan07 ? 00:00:00 /usr/sbin/httpd
nobody 127 116 0 Jan07 ? 00:00:00 /usr/sbin/httpd
nobody 128 116 0 Jan07 ? 00:00:00 /usr/sbin/httpd
root 142 118 0 Jan07 tty1 00:00:00 /bin/sh /usr/X11R6/bin/startx
root 149 142 0 Jan07 tty1 00:00:00 xinit
/usr/X11R6/lib/X11/xinit/xinitrc --
root 150 149 0 Jan07 ? 00:02:59 X :0
root 154 149 0 Jan07 tty1 00:00:00 /bin/sh
/usr/X11R6/lib/X11/xinit/xinitrc
root 156 154 0 Jan07 tty1 00:00:00 /bin/sh /opt/kde/bin/startkde
root 174 1 0 Jan07 ? 00:00:00 kdeinit: dcopserver --nosid
root 177 1 0 Jan07 ? 00:00:00 kdeinit: klauncher
root 180 1 0 Jan07 ? 00:00:00 kdeinit: kded
root 196 1 0 Jan07 ? 00:01:42 /opt/kde/bin/artsd -F 10 -S
4096 -s 60 -m artsmessage -l 3 -f
root 200 1 0 Jan07 ? 00:00:01 kdeinit: knotify
root 201 1 0 Jan07 ? 00:00:00 kdeinit: Running...
root 202 156 0 Jan07 tty1 00:00:00 ksmserver --restore
root 203 201 0 Jan07 ? 00:00:06 kdeinit: kwin
root 205 1 0 Jan07 ? 00:00:02 kdeinit: kdesktop
root 207 1 0 Jan07 ? 00:00:19 kdeinit: kicker
root 214 1 0 Jan07 ? 00:00:00 kdeinit: kwrited
root 215 214 0 Jan07 pts/0 00:00:00 /bin/cat
root 219 1 0 Jan07 ? 00:03:13 kmail -caption KMail -icon
kmail -miniicon kmail
root 313 1 0 Jan07 ? 00:00:00 kdeinit: kcookiejar
root 315 1 0 Jan07 ? 00:00:00 kdesud
root 325 201 0 Jan07 ? 00:00:23 quanta
root 344 1 0 Jan07 ? 00:00:00 /bin/sh ./bin/safe_mysqld
--user=mysql
mysql 363 344 0 Jan07 ? 00:00:00 /usr/local/mysql/bin/mysqld
--defaults-extra-file=/usr/local/mysql/data/my.cnf --basedir=/usr/lmysql
365 363 0 Jan07 ? 00:00:00 /usr/local/mysql/bin/mysqld
--defaults-extra-file=/usr/local/mysql/data/my.cnf --basedir=/usr/lmysql
366 365 0 Jan07 ? 00:00:00 /usr/local/mysql/bin/mysqld
--defaults-extra-file=/usr/local/mysql/data/my.cnf --basedir=/usr/lnobody
367 116 0 Jan07 ? 00:00:00 /usr/sbin/httpd
root 420 201 0 Jan07 ? 00:00:00 /bin/sh
/usr/local/Komodo-1.2/startkomodo
root 421 420 0 Jan07 ? 00:00:00 /bin/sh
/usr/local/Komodo-1.2/Mozilla/run-mozilla.sh
/usr/local/Komodo-1.2/Mozilla/mozilla-bin
root 426 421 0 Jan07 ? 00:02:06
/usr/local/Komodo-1.2/Mozilla/mozilla-bin -console -chrome
chrome://komodo/content
root 428 426 0 Jan07 ? 00:00:00
/usr/local/Komodo-1.2/Mozilla/mozilla-bin -console -chrome
chrome://komodo/content
root 429 428 0 Jan07 ? 00:00:00
/usr/local/Komodo-1.2/Mozilla/mozilla-bin -console -chrome
chrome://komodo/content
root 430 428 0 Jan07 ? 00:00:00
/usr/local/Komodo-1.2/Mozilla/mozilla-bin -console -chrome
chrome://komodo/content
root 435 428 0 Jan07 ? 00:00:00
/usr/local/Komodo-1.2/Mozilla/mozilla-bin -console -chrome
chrome://komodo/content
root 499 428 0 Jan07 ? 00:00:00
/usr/local/Komodo-1.2/Mozilla/mozilla-bin -console -chrome
chrome://komodo/content
root 947 201 0 Jan07 ? 00:00:01 kdeinit: konsole -icon
konsole -miniicon konsole
root 948 947 0 Jan07 pts/2 00:00:00 /bin/bash
root 951 1 0 Jan07 ? 00:00:00 [eth0]
root 1794 201 0 14:53 ? 00:00:00 /bin/sh
/usr/local/netscape/run-mozilla.sh /usr/local/netscape/mozilla-bin
root 1799 1794 22 14:53 ? 00:00:03
/usr/local/netscape/mozilla-bin
root 1801 1799 0 14:53 ? 00:00:00
/usr/local/netscape/mozilla-bin
root 1802 1801 0 14:53 ? 00:00:00
/usr/local/netscape/mozilla-bin
root 1803 1801 0 14:53 ? 00:00:00
/usr/local/netscape/mozilla-bin
root 1805 1801 0 14:53 ? 00:00:00
/usr/local/netscape/mozilla-bin
root 1806 948 0 14:53 pts/2 00:00:00 ps -Af
as you can see there are a lot of mozilla's
Now for the grep
bash-2.05# ps -Af | grep mozilla
root 1799 1794 5 14:53 ? 00:00:04
/usr/local/netscape/mozilla-bin
root 1801 1799 0 14:53 ? 00:00:00
/usr/local/netscape/mozilla-bin
root 1802 1801 0 14:53 ? 00:00:00
/usr/local/netscape/mozilla-bin
root 1803 1801 0 14:53 ? 00:00:00
/usr/local/netscape/mozilla-bin
root 1805 1801 0 14:53 ? 00:00:00
/usr/local/netscape/mozilla-bin
root 1810 948 0 14:54 pts/2 00:00:00 grep mozilla
hmm strange.... the komodo's aren't showing up. Is this a bug in grep or is
ps truncating it's output when piping?
Kind regards
- Grep BUG?!,
TD - Sales International Holland B.V. <=