From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/755 Path: news.gmane.org!not-for-mail From: Charlie Brady Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: chpst -e question Date: Fri, 8 Apr 2005 14:32:00 -0400 (EDT) Message-ID: References: <664dfc3f401c63e26fce56a6ec6f3a1c@annvix.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1112985024 9790 80.91.229.2 (8 Apr 2005 18:30:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2005 18:30:24 +0000 (UTC) Cc: "" Original-X-From: supervision-return-991-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Apr 08 20:30:22 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1DJyEY-0002nB-7q for gcsg-supervision@gmane.org; Fri, 08 Apr 2005 20:29:34 +0200 Original-Received: (qmail 23754 invoked by uid 76); 8 Apr 2005 18:32:24 -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 23749 invoked from network); 8 Apr 2005 18:32:24 -0000 X-X-Sender: charlieb@e-smith.charlieb.ott.istop.com Original-To: Vincent Danen In-Reply-To: <664dfc3f401c63e26fce56a6ec6f3a1c@annvix.org> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:755 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:755 On Fri, 8 Apr 2005, Vincent Danen 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' --- Charlie