Thanks Bruce -- setting both path and cwd fixed the problem. On Tue, Jan 11, 2011 at 3:02 PM, Bruce Richardson <itsbr...@workshy.org>wrote:
> On Tue, Jan 11, 2011 at 02:36:42PM +0000, Martin Harrigan wrote: > > Hi all, > > > > I am using Puppet to execute an Expect script ( > http://expect.sourceforge.net) > > on a client. The Puppet recipe, test.pp, is: > > > > exec { '/root/test.exp': > > command => '/root/test.exp', > > logoutput => true > > } > > > > > > Is there any difference in the way Puppet executes a recipe using 'puppet > > --debug --verbose' compared to using puppetd? > > One issue will be the path. You really do need to set a path for exec > with a minimum of '/bin/' on it so that puppetd can find /bin/sh, in my > experience. When you run puppet rather than puppetd, it's inheriting > your environment with your path. > > -- > Bruce > > It is impolite to tell a man who is carrying you on his shoulders that > his head smells. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.