Chris Bannister wrote:
> Hi,
>
> I noticed that /sbin/reboot is a symbolic link to /sbin/halt. How does
> the system "know" the difference? 
>   

By checking the name with which the program was called. In C it's
available as the first element in the array of command-line arguments
that the program receives; other languages have similar means.

There are several programs that behave like this, a look at /usr/bin
will reveal others.


-- 
The major difference between bonds and bond traders is that the bonds will
eventually mature.

Eduardo M KALINOWSKI
[email protected]


-- 
To UNSUBSCRIBE, email to [email protected] 
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to