On 23 Mrz., 12:16, Paul Tötterman <[email protected]> wrote:
> Hi Jay,
>
> > exec { 'ExecCreatedFolder':
> >        command => "mkdir C:\PuppetOrdner\​ExecCreatedFolder",
> > }
>
> mkdir is a command implemented by the windows command processor cmd.exe,
> not a callable 
> program.http://docs.puppetlabs.com/references/stable/type.html#execstates 
> that the
> Windows provider can only call executables instead of giving commands to a
> shell.
>
> That said, have you tried something like 'command => "cmd /c mkdir
> c:\test"' ?
I tried it and it didn't work.. but I know what you mean.

It's OK

>
> Also, I hope you bring up mkdir purely for the sake of discussion, since
> file { 'C:/test': ensure => directory } works for creating directories.
Yes, It was just an example :-)
Just to try the ressource exec
>
> Cheers,
> Paul

Thx for your quick answer.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to