Date: Wed, 23 Sep 1998 11:13:15 -0700 From: Studded <Studded@dal.net> To: Dan Nelson <dnelson@emsphone.com> Cc: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>, freebsd-questions@FreeBSD.ORG Subject: Re: How to get the PID before a program is run? (No joke :-) Message-ID: <36093A3B.7217F443@dal.net> References: <199809230729.JAA12131@internal> <19980923095428.B10645@emsphone.com> <360931B1.29E98E12@dal.net> <19980923125749.A26376@emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Dan Nelson wrote: > You left out the rest of my script :) > > #! /bin/sh > echo $$ > /var/run/program.pid > exec /bin/program > > The exec replaces the shellscript with the program. The pid does not > change. You are correct. My understanding was that even with exec there would be a new pid for the new program. Nice to learn something new. :) Sorry for the confusion, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36093A3B.7217F443>