Thanks Nikola, for some reason its not working.. I am getting this error now
err: /Stage[main]/Vidispine/Exec[glassfishInstaExe]/returns: change from notrun to 0 failed: /usr/bin/yes | /usr/bin/java -Xmx256m -jar /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar returned 1 instead of one of [0] at /etc/puppetlabs/puppet/modules/vidispine/manifests/init.pp:17. Thanks, Jithin On Tue, Feb 26, 2013 at 2:04 PM, Nikola Petrov <nikol...@gmail.com> wrote: > Not sure if this will help you at all but you can try the yes[1] > command. > > Try to change your exec to: > > exec { 'glassfishInstaExe': > command => '/usr/bin/yes | /usr/bin/java -Xmx256m -jar > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar', > cwd => '/gx/mnt/software/Vidispine/Components', > } > > > > [1] http://en.wikipedia.org/wiki/Yes_(Unix) > > > -- > Nikola > > On Tue, Feb 26, 2013 at 12:22:18AM -0800, Jithin Xavier wrote: > > Hi All, > > > > Can any one help to install my jar file automatically, > > > > When I tried to install /usr/bin/java -Xmx256m -jar > > > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,its > > is asking for confirmation like Accept or Decline? [A,D,a,d]. So how can > I > > pass answer with command. > > > > Please find my puppet code below > > > > exec { 'glassfishInstaExe': > > command => "/usr/bin/java -Xmx256m -jar > > > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar", > > cwd => "/gx/mnt/software/Vidispine/Components", > > } > > > > Thanks, > > Jxavier > > > > -- > > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to puppet-users+unsubscr...@googlegroups.com. > > To post to this group, send email to puppet-users@googlegroups.com. > > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -Regards Jithin Xavier +91-9739505163 Skype- jithinxavi in.linkedin.com/in/jithinxavier/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.