Re: [ILUG] A little grep mystery

From: Barry O'Donovan (barry.odonovan at domain ucd.ie)
Date: Tue 04 Jun 2002 - 10:05:01 IST


With bash, add following to your .bashrc or .bash_profile:

alias ps='ps -w'

Barry

Ar an Tuesday 04 June 2002 09:05, scriobh Niall O Broin:
> I have a box running the Communigate mail server and an extract
> from ps -ef on that box looks like
>
> root 727 584 0 Apr11 ? 00:00:19
> /usr/local/sbin/CommuniGate/CGServer root 728 584 0 Apr11
> ? 00:00:00 /usr/local/sbin/CommuniGate/CGServer
>
> yet when I do ps -ef|grep CGServer I get just this
>
>
> root 7429 7377 0 09:38 pts/7 00:00:00 grep CGServer
>
> Any ideas ?
>
> but in the interim (i.e. while writing this) I piped the output
> through cat and got
>
> root 727 584 0 Apr11 ? 00:00:19
> /usr/local/sbin/CommuniGate/CGSe root 728 584 0 Apr11 ?
> 00:00:00 /usr/local/sbin/CommuniGate/CGSe
>
> and then I remembered this being discussed here recently - ps
> 'intelligently' cutting its output at column 80 if STDOUT is not a
> tty. ps -efw saves the day but is there any way of stopping ps from
> doing this permanent basis via an environment variable or a
> configuration option. As sure as eggs is eggs, this will catch me
> again in 6 months time.
>
>
>
> Niall

-- 
Regards,
Barry O'Donovan	barry.odonovan at domain ucd.ie
Mobile: +353 (0)86 2891589, Office: +353 (0)1 716 2454
Roinn na Riomheolaiochta, An Colaiste Ollscoile, Baile Atha Cliath.
Department of Computer Science, University College Dublin.


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:04 GMT