From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/757 Path: news.gmane.org!not-for-mail From: Vincent Danen Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: chpst -e question Date: Fri, 8 Apr 2005 22:09:16 -0600 Message-ID: References: <664dfc3f401c63e26fce56a6ec6f3a1c@annvix.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-37--578912834" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1113019620 308 80.91.229.2 (9 Apr 2005 04:07:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Apr 2005 04:07:00 +0000 (UTC) Cc: "" Original-X-From: supervision-return-993-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Apr 09 06:06:58 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1DK7FA-0001bA-5d for gcsg-supervision@gmane.org; Sat, 09 Apr 2005 06:06:48 +0200 Original-Received: (qmail 27734 invoked by uid 76); 9 Apr 2005 04:09:42 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 27728 invoked from network); 9 Apr 2005 04:09:42 -0000 In-Reply-To: Original-To: Charlie Brady X-Pgp-Agent: GPGMail 1.0.2 X-Mailer: Apple Mail (2.619.2) X-SA-Exim-Connect-IP: 68.149.32.85 X-SA-Exim-Mail-From: vdanen@annvix.org X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on hades.annvix.org X-Spam-Level: X-Spam-Status: No, hits=-3.0 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-SA-Exim-Version: 4.1 (built Thu, 17 Mar 2005 01:31:55 -0500) X-SA-Exim-Scanned: Yes (on hades.annvix.org) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:757 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:757 --Apple-Mail-37--578912834 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On Apr 08, 2005, at 12:32, Charlie Brady wrote: >> So I'm fiddling and find that if I do: >> >> chpst -e ./env env >> >> I can see the values of IP and ROOT in the env output, but if I do >> something like: >> >> chpst -e ./env echo $IP >> >> I get nothing. > > The shell will substitute "$IP" with the value of the shell variable > IP before chpst is run. So your command above is equivalent to: > > chpst -e ./env echo > > Try: > > chpst -e ./env sh -c 'echo $IP' dOh! Perfect, thanks for the enlightenment, Charlie. -- Annvix - Secure Linux Server: http://annvix.org/ "lynx -source http://linsec.ca/vdanen.asc | gpg --import" {FEE30AD4 : 7F6C A60C 06C2 4811 FA1C A2BC 2EBC 5E32 FEE3 0AD4} --Apple-Mail-37--578912834 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFCV1VsLrxeMv7jCtQRAt/3AJ9UF6iHDSAqvrxUnp9He4ncMDDYgACaAtNl fVxhfSUyrTs+3TkoONk/ESY= =13qt -----END PGP SIGNATURE----- --Apple-Mail-37--578912834--