Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with NetInfo Manager/Enabling services reprise



first I believe signal is exactly the same as the "kill" command. Don't
let that scare you - as the name signal implies this just sends the
program a unix signal. The kill command mearly defaults to sending a
signal that tells it to shut down. The -HUP signal tells the program to
reload it's configuration.

Cat, short for concatenate, is a very tame command. It does this: prints
the contents of the files you tell it. The magic of this command is the
backticks, or "`". This tells the shell to execute their contents first as
a seperate command, and then run the entire command with the backticked
section replaced with the return value of the embedded command.

/var/run/inetd.pid is a file that contains the process id of the inetd
daemon. This id is needed to send inetd a signal.

Executed as is this command will not damage anything, and has very little
risk of doing so. The greatest risk is forgetting to type "-HUP", which is
still a problem that could be reversed in seconds.

Good Luck,

nathan




On Fri, 20 Jul 2001, Lance Holt wrote:

> Thank you Justin, the links you provided were most helpful. I'm confused
> as to your suggested command:
>
> signal -HUP `cat /var/run/inetd.pid`
>
> I found no reference to the command "signal" in the Terminal MAN pages,
> and "concatenate" quite frankly scares me a bit, so I thought I might
> get some clarification from you before I attempted something that I
> would be sorry about later.
>
> Also from the MAN pages:
>
> Rob Pike, "UNIX Style, or cat -v Considered Harmful"
>
> My "any ideas" was referring to exactly what you gave me, thanks again
> <8^)
>
>
> > Message: 11
> > Date: Thu, 19 Jul 2001 16:14:31 -0500
> > From: "Justin C. Walker" <email@hidden>
> > Subject: Re: Help with NetInfo Manager/Enabling services
> >
> > You don't need to worry about netinfo for most of your concerns. It's
> > not related. Since you're new, you might not be aware, but:
> > www.darwinfo.org archives both this list and darwin-development
> > www.omnigroup.com hosts and archives several Mac OS X-specific lists
> >
> > I'm not clear what /etc/services plays in this, but just like in other
> > Unices, if you change what's in inetd.conf, don't expect inetd to just
> > automagically pick this up. You need to tell it that its config has
> > changed:
> > signal -HUP `cat /var/run/inetd.pid`
> > (as root; or better, using 'sudo').
>
> >> So it is apparent that the test machine is hearing my attempt at
> >> access, but
> >> the permission is still denied... somewhere! Any ideas?
> >
> > About what? I'm not sure what you're asking about.
> >
> > Regards,
> >
> > Justin---
> > Justin C. Walker, Curmudgeon-At-Large *
> _______________________________________________
> darwinos-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/darwinos-users




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.