Forum: CFEngine Help
Subject: Re: Commands and environment variables
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,26106,26112#msg-26112
The contain body only says to run as the user - not to start a login shell as
the user (which is what loads that user's environment).
Diego Zamboni wrote:
>Hi Nick,
>
>What is the value of $(user)? And as what user are you running
>cf-agent?
>
>--Diego
>
>On Jun 1, 2012, at 1:47 PM, Nick Anderson wrote:
>
>> I stumbled on this script today that is using env $HOME and when run
>> from cfengine it always sees that variable as roo
Hi Nick,
What is the value of $(user)? And as what user are you running cf-agent?
--Diego
On Jun 1, 2012, at 1:47 PM, Nick Anderson wrote:
> I stumbled on this script today that is using env $HOME and when run
> from cfengine it always sees that variable as roots home.
>
> I thought that uses