The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
exiting a child without stopping the parent madpenguin Shell Programming and Scripting 5 09-19-2007 07:45 PM
Parent/Child Processes yoi2hot4ya Shell Programming and Scripting 2 05-31-2006 10:27 AM
kill parent and child larry UNIX for Dummies Questions & Answers 4 01-11-2003 09:18 PM
How hard can it be? ps child/parent velde046 Filesystems, Disks and Memory 2 05-25-2002 01:36 PM
what are parent and child processes all about? xyyz UNIX for Dummies Questions & Answers 1 04-26-2002 12:53 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-29-2008
Registered User
 

Join Date: Feb 2007
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 187
Exclamation Parent child Relation !! using awk/sed ???

tempfind.txt file has:
t2589vg 888898 336008 09:15:55 -ksh
mqsiadm 1421774 888898 09:16:48 -ksh

I am searching using 1421774 in the above file tempfind.txt and and trying to get the no. i.e. 888898 [in Blue]. Based on this no. i have to get the first line, where the same no. is there [in Red]. The nos. in Blue has to match with the no. in Red.

That is the process "-ksh" with user id t2589vg that is parent process to "-ksh" of user mqsiadm. And I am trying to get the name of the parent process through its child process id.

How can I do this using awk/sed ???

Please let me know , asap.
Thanks.

Varun.
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0