You mean something like this :)
Have a look at my setup. First I got the parenting right. Then set up the orientation of the Null pivot so that it would target along its Z axis. Made the arm aim at a Null target using a Target expression tag. Used an Up Vector Null to control which way the arm faces. This also prevents flipping.
Hope this helps.
Octopod_0001.zip