It is currently Mon, 25 Sep 2023 10:16:25 GMT



 
Author Message
 grep problem in ps aux

Hi,
    I am having some problems with grep with ps aux.

It seems when I tried to grep any string after the 80th column in the
output of `ps aux`, the grep fails.

E.g

 % ps aux  

gives

root       119  0.0  0.6  1984   780  ?  S  Jan 19   0:36 /usr/X11/bin/xdm -conf /usr/X11R6/lib/X11/xdm/xdm-config

which gives a line of more than 80chars long.

Now, if I grep for say "config" - like so

  % ps aux | grep config

grep fails to come with any result - when the above should have been picked up.

Does anybody knows what's wrong here and if there is any fix for that.

I am running slackware 3.4 (Linux kernel 2.0.30)

Any help would be greatly appreciated

TIA

krishan

krishan.pura...@jet.uk



 Sun, 09 Jul 2000 03:00:00 GMT   
 grep problem in ps aux

Use ps auxw.



 Sun, 09 Jul 2000 03:00:00 GMT   
 grep problem in ps aux

Try 'ps auwx'

--
    \\   ( )   No Bullshit!   | Email: B.A.McCau...@bham.ac.uk
 .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)
.__/  \\ /\@  /~)  /~[   /\/[ |   +44 121 627 2173 (voice) 2175 (fax)
.  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
 # ll  l\\  ~~~~ ~   ~ ~    ~ | http://wcl-l.bham.ac.uk/~bam/
###LL  LL\\ (Brian McCauley)  | Finger: b...@wcl-rs.bham.ac.uk



 Tue, 11 Jul 2000 03:00:00 GMT   
 
   [ 3 post ] 

Similar Threads

1. What is truncating the columns: ps aux | grep foo

2. What is truncating the columns: ps aux | grep foo

3. ps/2 mousesystems to aux ps/2 port

4. ps aux | fgrep cron (ksh script problem)

5. ps -ef | grep ps

6. exclude grep or ps from ps?

7. can I disable ps -aux for certain users?

8. 1.3.99 + ps -aux == Floating point exception

9. ps -aux on new kernels


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software