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.


Reply via email to