Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Why doesn't ps -ef wrap to next line under Digital UNIX
@ 1996-11-14  5:00 Guy Dallaire
  1996-11-16  5:00 ` Tony Quan
  1996-11-17  5:00 ` hj
  0 siblings, 2 replies; 3+ messages in thread
From: Guy Dallaire @ 1996-11-14  5:00 UTC (permalink / raw)



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 !





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Why doesn't ps -ef wrap to next line under Digital UNIX
  1996-11-14  5:00 Why doesn't ps -ef wrap to next line under Digital UNIX Guy Dallaire
@ 1996-11-16  5:00 ` Tony Quan
  1996-11-17  5:00 ` hj
  1 sibling, 0 replies; 3+ messages in thread
From: Tony Quan @ 1996-11-16  5:00 UTC (permalink / raw)



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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Why doesn't ps -ef wrap to next line under Digital UNIX
  1996-11-14  5:00 Why doesn't ps -ef wrap to next line under Digital UNIX Guy Dallaire
  1996-11-16  5:00 ` Tony Quan
@ 1996-11-17  5:00 ` hj
  1 sibling, 0 replies; 3+ messages in thread
From: hj @ 1996-11-17  5:00 UTC (permalink / raw)
  To: Guy Dallaire


Do like this instead:

ps auxww| grep some_thing

That'll do what u want. Notice that I don't write the "-".

Regards

Henrik Johansson


On Thu, 14 Nov 1996, 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 !
> 
> 
> 
> 


 -----=<->=-----=</>=-----=<->=-----=<|>=-----=<->=-----=<\>=-----=<->=-----
  Henrik Johansson     email: hj@globecom.net      tel: +46 (0)31-775 00 90   
   Systems Manager   mobile: +46 (0)706-25 15 45   fax: +46 (0)31-775 00 85
  GlobeCom Network "When communicating is your need"   http://globecom.net/
 -----=<->=-----=<\>=-----=<->=-----=<|>=-----=<->=-----=</>=-----=<->=-----




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-11-17  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-11-14  5:00 Why doesn't ps -ef wrap to next line under Digital UNIX Guy Dallaire
1996-11-16  5:00 ` Tony Quan
1996-11-17  5:00 ` hj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox