Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Sep 1998 10:36:49 -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:  <360931B1.29E98E12@dal.net>
References:  <199809230729.JAA12131@internal> <19980923095428.B10645@emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Dan Nelson wrote:

> How about:
> 
> #! /bin/sh
> echo $$ > /var/run/program.pid

	$$ is the pid of the shell. 

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?360931B1.29E98E12>