Exec of process that doesn't terminate

53 views
Skip to first unread message

iceberg

unread,
May 5, 2012, 3:02:33 AM5/5/12
to puppet...@googlegroups.com
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!


Josh Cooper

unread,
May 14, 2012, 2:35:42 PM5/14/12
to puppet...@googlegroups.com
Hi Rob,

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

Reply all
Reply to author
Forward
0 new messages