- From: "Julian C. Dunn" <
>
- To: "
" <
>
- Subject: [chef] Re: Re: RE: Windows and powershell_out
- Date: Mon, 27 Oct 2014 23:42:14 -0400
On Mon, Oct 27, 2014 at 7:43 AM, Tensibai Zhaoying
<
>
wrote:
>
The file don't exist when the only_if run at compile time. Run your
>
powershell resource at compile time with end.run_action(:create) (see the
>
default action I'm unsure)
Not sure what the problem is here exactly but I just wanted to clarify
that guards don't run at compile time; they run at execute time, so
that can't be the problem.
Could you try using "| Out-File C:\windows\temp\fileversion.txt"
rather than the ">" redirection?
- Julian
--
[ Julian C. Dunn
<
>
* Sorry, I'm ]
[ WWW:
http://www.aquezada.com/staff/julian * only Web 1.0 ]
[
gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]
Archive powered by MHonArc 2.6.16.