Re: CFEngine Help: Re: Finding the current user running cf-agent

2011-11-17 Thread Matthieu CERDA
The -10/01/-28163 20:59, no-re...@cfengine.com wrote : > Forum: CFEngine Help > Subject: Re: Finding the current user running cf-agent > Author: zzamboni > Link to topic: https://cfengine.com/forum/read.php?3,23960,23966#msg-23966 > > Mike, you are correct, this works fine. &g

CFEngine Help: Re: Finding the current user running cf-agent

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Re: Finding the current user running cf-agent Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23960,23966#msg-23966 Mike, you are correct, this works fine. ___ Help-cfengine mailing list Help-cfengine

CFEngine Help: Re: Finding the current user running cf-agent

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Re: Finding the current user running cf-agent Author: mikesphar Link to topic: https://cfengine.com/forum/read.php?3,23960,23964#msg-23964 Maybe I'm missing something, but shouldn't something like this work? vars: "env_user" string

CFEngine Help: Re: Finding the current user running cf-agent

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Re: Finding the current user running cf-agent Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,23960,23963#msg-23963 You could check $(sys.workdir); if it's /var/cfengine, you're root. Otherwise, it's .cfagent under the home

CFEngine Help: Re: Finding the current user running cf-agent

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Re: Finding the current user running cf-agent Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23960,23961#msg-23961 Hi Matthieu, I don't think there's a function or variable for this. You could use something like this: "c

Finding the current user running cf-agent

2011-11-16 Thread Matthieu CERDA
I am looking for a way to get the user currently running cf-agent, but I can not find any sys variable on function related to this in the documentation. Is there a "standard" way to get it ? Thanks in advance, -- == Matthieu CERDA