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
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
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
>
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