title: How to know inside binary about the symlink through which it is invoked?
body: <p>Suppose I have multiple symlink for a binary created, which was known before the binary was created and also the symlink name is also known.
  I want to differentiate the call this binary will do depending on which symlink invoked it.
  For an example, a and b symlinks points to binary math. when a is executed, then it prints "a". when invoked via b, then it prints "b". when math binary is executed, it print "default".</p>
  
  <p>I am trying for same binary to be invoked via symlink.
  The binary could be written in any language. So please advise on this as well.</p>