From: Vincent Danen <vdanen@annvix.org>
Cc: "<supervision@list.skarnet.org><supervision@list.skarnet.org>"
<supervision@list.skarnet.org>
Subject: Re: chpst -e question
Date: Fri, 8 Apr 2005 22:09:16 -0600 [thread overview]
Message-ID: <ccfcc68cb2776bcf41b2ca1cc6c1fc21@annvix.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0504081428340.10992@e-smith.charlieb.ott.istop.com>
[-- Attachment #1: Type: text/plain, Size: 701 bytes --]
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}
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 186 bytes --]
prev parent reply other threads:[~2005-04-09 4:09 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
2005-04-09 4:09 ` Vincent Danen [this message]
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=ccfcc68cb2776bcf41b2ca1cc6c1fc21@annvix.org \
--to=vdanen@annvix.org \
--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).