Re: Runaway Process - Urgent

From: Holger.VanKoll@SWISSCOM.COM
Date: Fri Feb 20 2004 - 05:26:43 EST


grep cant handle lines >2048 chars

I use this to handle bigger lines:

cat /usr/local/bin/agrep
#!/bin/ksh
#
# Usage: agrep pattern [ file ]
#
# or
# cat file | agrep pattern
#

PATTERN=$1; shift 1

awk -v pattern=$PATTERN '$0 ~ pattern' $*

-----Original Message-----
From: Kumar, Praveen (cahoot) [mailto:Praveen.Kumar@CAHOOT.COM]
Sent: Friday, February 20, 2004 11:04 AM
To: aix-l@Princeton.EDU
Subject: Runaway Process - Urgent

Hi *,
       I am looking for a run away process on one of my system, using
the
command ps -ef|grep \\[ which i used to use on another system and
determine the run away process, but on this system if i run the same it
gives me an error saying

USF3PRES5[/home/ITC0004]:ps -ef|grep \\[
grep: 0652-226 Maximum line length of 2048 exceeded.
 ITC0004 33768 31366 1 10:01:28 pts/5 0:00 grep \[

can someone tell me how to determine the runaway process...

TIA

Praveen.K

*********************
Internet communications are not necessarily secure and may be
intercepted or
changed after they are sent. cahoot does not accept liability for any
such
changes.
If you wish to confirm the origin or content of this communication,
please
contact the sender using an alternative means of communication.

This communication does not create or modify any contract.

This email may contain confidential information intended solely for use
by
the addressee. If you are not the intended recipient of this
communication
you should destroy it without copying, disclosing or otherwise using its
contents.

Please notify the sender immediately of the error.

cahoot is a division of Abbey National plc.
Abbey National plc is registered in England, registered number 2294747.
Registered Office: Abbey National House, 2 Triton Square, Regent's
Place,
London, NW1 3AN.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:37 EDT