>No problem, that's the way it's supposed to work. Basically, /sbin/halt
>can detect how it's called and react accordingly. It's a pretty common
>tactic in scripting languages like Bash and Perl too.
>Aaron Turner, Core Developer http://vodka.linuxkb.org/~aturner/
Odds are it was programmed in C and arg[0] contains the name of how it was
called. As pointed out, practically every scripting language has an argument
that contains the name by which it was called. The program/script can then
look at that value and proceed accordingly.
MB
--
e-mail: [EMAIL PROTECTED]
Bart: Hey, why is it destroying other toys? Lisa: They must have
programmed it to eliminate the competition. Bart: You mean like
Microsoft? Lisa: Exactly. [The Simpsons - 12/18/99]
Visit - URL:http://www.vidiot.com/ (Your link to Star Trek and UPN)
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.