in reply to Finding out how you were called...

  • maybe you could allow the different names to be calls to the same program name with commandline options. ie:
    Print_Users => mainprog --print-users Clear_users => mainprog --clear-users
  • Also, there was a batch queue system written in C called Autoson that did some crazy stuff with the way it was compiled so that different names to the same executable did different things.
  • Replies are listed 'Best First'.
    Re: Re: Finding out how you were called...
    by suaveant (Parson) on Aug 06, 2001 at 23:38 UTC
      Actually what I am doing is executing a sub program by the same name as the executable... and it is supposed to be transparent, so command line options aren't good. But I don't want people to be able to ln -s a copy of the program to a different name and access a script they aren't supposed to.

                      - Ant
                      - Some of my best work - Fish Dinner