> > As I indicated previously, /etc/profile is where your users' environment
> > variable $HOSTNAME originates during the login process.  It is only
> > coincidental that Charles used $HOSTNAME in network.conf.  Notice,
> > multicron-* never sources /etc/network.conf, which means that it has
> > *no* idea what is or isn't in that file . . .
>
> I wonder what user multicron-p runs under since whoami prints nothing when
> run by that process?  I'm not familair with the concept of sourcing
scripts,
> I'll look into that.  Thanks for helping an LRP scripting rookie
understand
> this stuff.

That's because whoami is a POSIXness shell-script that simply echos the
value of the $USER environment variable.  Since this isn't setup properly
when being run by cron, you don't get any output :(

> Sounds like I shouldn't worry about $HOSTNAME not working in multicron-p.
> Doesn't mean something fundamental is broken which is what I was trying to
> discern with all of my daft questions.

This is correct...nothing fundamental is broken, and none of the laws of
physics have been altered.  Either the ping-check stuff never worked, or in
updating other parts of the distribution (especially busybox) this
functionality was broken and not noticed until now.

Charles Steinkuehler
http://lrp.steinkuehler.net
http://c0wz.steinkuehler.net (lrp.c0wz.com mirror)



_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to