Hi! I want to have an exec that launches a process on a Windows 7 system that will not terminate. I have tried just calling the executable directly, but that obviously will not return anything, so the puppet agent waits until the timeout has elapsed, then the exec fails. I''ve tried using a batch file to exec the process, but puppet picks up the child process and won''t mark the exec successful because the child never returns an exit code. Any ideas on how I can force the puppet agent to just monitor any return of a parent launcher process and not worry about the subsequent child process? Thanks! -- 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/-/MTaEdaM20lAJ. 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
2012-May-14 18:35 UTC
Re: [Puppet Users] Exec of process that doesn''t terminate
Hi Rob, On Sat, May 5, 2012 at 12:02 AM, iceberg <rob.nolen@gmail.com> wrote:> Hi! > > I want to have an exec that launches a process on a Windows 7 system that > will not terminate. > > I have tried just calling the executable directly, but that obviously will > not return anything, so the puppet agent waits until the timeout has > elapsed, then the exec fails. > > I''ve tried using a batch file to exec the process, but puppet picks up the > child process and won''t mark the exec successful because the child never > returns an exit code. > > Any ideas on how I can force the puppet agent to just monitor any return > of a parent launcher process and not worry about the subsequent child > process? > > Thanks! >You probably want to do something like: cmd.exe /c start /b <command> [arg1] ... You may or may not need the /b depending on whether you are trying to launch a console or gui application. Josh -- 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 http://groups.google.com/group/puppet-users?hl=en.