Error when executing a find [closed]

asked 2015-06-12 10:48:34 -0500

DX gravatar image

I am new to puppet, trying to execute a find statement: # make all tomcat scripts executable exec { "chmodtomcat": command => "find /opt/owf/ -name "*.sh" -exec chmod -R +x {} \;", path => "/bin", } and get the following error in the line command => find.....: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at '\'; expected '}'

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by DX
close date 2015-06-12 14:17:32.231695


Update: Found the problem! Use single quotes and escape the dot in the name : '*\.sh' worked for me.

DX gravatar imageDX ( 2015-06-12 14:17:01 -0500 )edit