LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] A little grep mystery

[ILUG] A little grep mystery

Stephen_Reilly at dell.com Stephen_Reilly at dell.com
Tue Jun 4 10:02:06 IST 2002


set up an alias for ps...

steve

-----Original Message-----
From: Niall O Broin [mailto:niall at linux.ie]
Sent: 04 June 2002 09:05
To: ilug at linux.ie
Subject: [ILUG] A little grep mystery


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


-- 
Irish Linux Users' Group: ilug at linux.ie
http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
List maintainer: listmaster at linux.ie




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell