Re: [Puppet Users] Spaces in file paths for puppet windows

Josh Cooper
2012-06-25T19:50:11Z

Hi Paul,

On Mon, Jun 25, 2012 at 12:41 PM, paul.gomersbach
<p.gomersbach@gmail.com>wrote:

> Hi all,
>
> I need to execute the following command, what will be the correct syntax
> in a windows exec resource?
>
> command => C:\Program Files (x86)\RSyslog\Agent\RSyslogConfigClient.exe
> "C:/Program Files (x86)/RSyslog/Agent/customsyslog.xml" /f
>

You''ll want to wrap double quotes around the executable, and then
single
quote the entire command line:

command => ''"C:\Program Files
(x86)\RSyslog\Agent\RSyslogConfigClient.exe"
"C:/Program Files (x86)/RSyslog/Agent/customsyslog.xml" /f''


> Tanks,
>
> Paul.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/NG14OmcrhMgJ.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>



--
Josh Cooper
Developer, Puppet Labs

--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at