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}