From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,dc11645841c013e9 X-Google-Attributes: gidf8c9b,public X-Google-Thread: fee84,dc11645841c013e9 X-Google-Attributes: gidfee84,public From: tquan@ibm.net (Tony Quan) Subject: Re: Why doesn't ps -ef wrap to next line under Digital UNIX Date: 1996/11/16 Message-ID: #1/1 X-Deja-AN: 196826899 references: <56fobf$8qu@newsfeeder.total.net> newsgroups: comp.unix.osf.osf1,comp.unix.questions In article <56fobf$8qu@newsfeeder.total.net>, dallaire@total.net (Guy Dallaire) wrote: > Hello, > > This morning, I discovered a fact about the 'ps' command, that I > ignored before. This also applies to other commands but I'll take 'ps > -ef' as an example: > > Example: > > my screen is X chars wide, A which images is known by the name of > 'some_long_image_name' is running in the system at this time. > > I issue the command: > > ps -ef > > I get: > > | <- Right screen limit > bla bla bla bla bla bla some_ > > Now, I want to make sure that 'some_long_image_name' is running. So I > do the following: > > ps -ef | grep 'some_long_image_name' > > Result: Not found. > > Workaround(s): > > I have to do a stty cols 132 (Why ?) > I have to grep on 'some_' only (Not very useful) > > Is there a way to have ps (or other commands) stop truncating it's > output in this way ? > > Thanks ! Try using the "ww" option of ps. --Tony tquan@ibm.net