The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
grep unix.com with google



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-30-2009
Registered User
 

Join Date: Nov 2009
Posts: 1
Child Process Name

Hi ,

I want to find out the child process name given its PID. I have used the ps command but it displays the parent process name against child PID.

Is there any way to find out name of child program executing under any parent program?
  #2 (permalink)  
Old 11-30-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,663
????

Code:
uv04:/home/vbe $ echo $$
2334736
uv04:/home/vbe $ sh         # is child PPID:2334736
uv04:/home/vbe $ echo $$
2392180
uv04:/home/vbe $ ps -ef|grep 2334736
     vbe 2334736 1163282   0   Nov 18  pts/0  0:00 -ksh 
     vbe 2392180 2334736   0 18:13:28  pts/0  0:00 sh 
uv04:/home/vbe $

Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to make the parent process to wait for the child process sennidurai Shell Programming and Scripting 7 09-30-2009 04:32 AM
Can a child process return a specific value to a parent process ? Ametis1970 High Level Programming 8 04-10-2008 12:22 AM
gdb to child process shriashishpatil UNIX for Advanced & Expert Users 4 12-12-2005 07:57 AM
KDM child process larryase UNIX for Dummies Questions & Answers 6 01-24-2005 05:41 PM
Child Process PID skannan High Level Programming 2 06-10-2002 08:54 AM



All times are GMT -4. The time now is 02:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0