Spaces in file paths for puppet windows

507 views
Skip to first unread message

paul.gomersbach

unread,
Jun 25, 2012, 3:41:52 PM6/25/12
to puppet...@googlegroups.com
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

Tanks,

Paul.

Josh Cooper

unread,
Jun 25, 2012, 3:50:11 PM6/25/12
to puppet...@googlegroups.com
Hi Paul,

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...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.



--
Josh Cooper
Developer, Puppet Labs

Reply all
Reply to author
Forward
0 new messages