Using exec

23 views
Skip to first unread message

Gene Fontanilla

unread,
Aug 31, 2015, 3:39:22 AM8/31/15
to Puppet Users
Hi Everyone,

I am relatively new to puppet open source, i want to create an exec file for windows to run a file if it is not running, it is not registered as a service for windows so exec is my alternative.
can anyone help me out?

this is a simple script i created,

  exec {'start':
        cwd => 'c:/Users/xxxxxx/Desktop',
        command => "cmd /c run.bat",
        path => $::path,
        logoutput => "on_failure",
        }

this runs the batch file.

regards and thanks!


Reply all
Reply to author
Forward
0 new messages