[lug] One Command -- Four Types

Alan Robertson alanr at unix.sh
Sun Aug 4 07:32:40 MDT 2002


SoloCDM wrote:
> I tried several ways to force the command ln to create a link with
> an option attached . . . it wouldn't work.
> 
> How are there four (/bin/dnsdomainname /bin/domainname
> /bin/nisdomainname /bin/ypdomainname) different types of hostname
> links with their own separate options?

domainname looks at argv[0] and sets default options accordingly.  It's a 
well-known practice.  That's part of why argv[0] gets passed to commands.

	-- Alan Robertson
	   alanr at unix.sh




More information about the LUG mailing list