From: Charlie Brady <charlieb-smarden-supervise@budge.apana.org.au>
Cc: "<supervision@list.skarnet.org><supervision@list.skarnet.org>"
<supervision@list.skarnet.org>
Subject: Re: chpst -e question
Date: Fri, 8 Apr 2005 14:32:00 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.61.0504081428340.10992@e-smith.charlieb.ott.istop.com> (raw)
In-Reply-To: <664dfc3f401c63e26fce56a6ec6f3a1c@annvix.org>
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
next prev parent reply other threads:[~2005-04-08 18:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-08 18:23 Vincent Danen
2005-04-08 18:32 ` Charlie Brady [this message]
2005-04-09 4:09 ` Vincent Danen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.61.0504081428340.10992@e-smith.charlieb.ott.istop.com \
--to=charlieb-smarden-supervise@budge.apana.org.au \
--cc=supervision@list.skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).