For future reference you where trying to do: command => "yes | /opt/splunkforwarder/bin/splunk start",
'yes' is a unix program that will type 'y' over and over again.. you could also of used 'echo y | <splunk>' if you needed just 1 y.. On Wednesday, October 10, 2012 5:26:37 AM UTC+11, JGonza1 wrote: > > I have the command below in a init.pp file that I run to startup splunk > for the first time but it outputs the license agreement which requires to > input a y or n. Is there a way to input a y after the lincese agreement? > > exec { "start": > command => "/opt/splunkforwarder/bin/splunk start", > } > I have tried to redirect a y in the command below but it did not work. > exec { "start": > command => "/opt/splunkforwarder/bin/splunk start < y", > } > > -- 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/-/hN5rvvsIKRQJ. To post to this group, send email to puppet-users@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.