Trying to create custom fact. Syntax problem
Trying to create a custom fact of the following command:
/usr/bin/free -m |/bin/sed -n -e '/^Mem:/s/^[^0-9]*\([0-9]*\) .*/\1/p'; /usr/bin/expr $var1 / 2
It basically gets the total system memory and takes half that value (was going to use it for my tomcat memory).
Command works fine at the command line but I can't get it to work in facter no matter what I do.
Any one have any ideas?