[ILUG] A little grep mystery
padraig at antefacto.com
Tue Jun 4 11:15:31 IST 2002
Niall O Broin wrote:
> 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.
Hmm, it's a questionable thing to do anyway, but shouldn't the logic
be the other way around? I.E. chop @ 80 if stdout is a tty?
More information about the ILUG