On Sat, 5 Jan 2002, Paul Rimmer wrote: > > 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 am pretty sure it runs as root... it runs as a derivative of a process started during bootup that is not invoked by tinylogin, which is normally what sets the LOGNAME variable, which is used to set the USER variable in POSIXness. (I don't have DS, so some of this may have changed.) > 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. To pretend you typed the contents of /somefile into the shell, use source /somefile or the abbreviation, . /somefile and note the space. > > 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. Yes. But learning why multicron-p's environment is different is worthwhile, too. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<[EMAIL PROTECTED]> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...2k --------------------------------------------------------------------------- _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user