All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Benoît Rouits" <brouits@free.fr>
To: Prasanta Sadhukhan <Prasanta.Sadhukhan@Sun.COM>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: Getting pid of exec'd process
Date: Thu, 22 Mar 2007 17:31:42 +0100	[thread overview]
Message-ID: <1174581102.16532.2.camel@chimay> (raw)
In-Reply-To: <4602646F.3040906@sun.com>

hello Prasanta, maybe you can look at 
http://patatra.mine.nu/cash/cash.tar.gz

it contains a shell of 160 line of code that uses fork() and execvp()
maybe the source code can help you to learn.
Hope this helps.
+ Ben

Le jeudi 22 mars 2007 à 16:41 +0530, Prasanta Sadhukhan a écrit :
> Hi,
> 
> Can anyone suggest as to how can I get the pid of the process which I 
> have done execv()?
> ie, if I do execv(path, cmd) a new process will be launched and now how 
> can I get the pid of this new process?
> 
> Regard
> Prasanta
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2007-03-22 16:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-22 11:11 Getting pid of exec'd process Prasanta Sadhukhan
2007-03-22 11:41 ` cyon.john
2007-03-22 16:31 ` Benoît Rouits [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1174581102.16532.2.camel@chimay \
    --to=brouits@free.fr \
    --cc=Prasanta.Sadhukhan@Sun.COM \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.