Re: [Puppet Users] not able to run Linux command through puppet

2015-01-06 Thread Trevor Vaughan
Looks like your Ruby syntax is incorrect. Try (untested): *%x{/usr/bin/diff <(/bin/sort /home/weblogic/javafoundmodified.txt) <(/bin/sort /home/weblogic/authorizedjava.txt) > /home/weblogic/unknownjava.txt | /bin/sed -i 's/^.//' /home/weblogic/unknownjava.txt}* *You might want to throw that i

Re: [Puppet Users] not able to run Linux command through puppet

2015-01-06 Thread Spriya
Same error is coming up. even though i changed to 'bash -c /usr/bin/diff ... On Tuesday, January 6, 2015 3:42:59 AM UTC-5, garethr wrote: > > On 5 January 2015 at 19:33, Spriya > > wrote: > > Hi, > > > > I am trying to run linux command through puppet. when i run the same > command > > i

Re: [Puppet Users] not able to run Linux command through puppet

2015-01-06 Thread Gareth Rushgrove
On 5 January 2015 at 19:33, Spriya wrote: > Hi, > > I am trying to run linux command through puppet. when i run the same command > in the command line it is working fine. But when i placed it in the puppet > it is throwing me an error. > > Here is the code: > > Facter.add('unknownjava') do >

[Puppet Users] not able to run Linux command through puppet

2015-01-05 Thread Spriya
Hi, I am trying to run linux command through puppet. when i run the same command in the command line it is working fine. But when i placed it in the puppet it is throwing me an error. Here is the code: *Facter.add('unknownjava') do* * setcode do* *%x(`/usr/bin/diff <(/bin/sort /h