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@xxxxxxxxxxxxxxx > 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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html