> It's funny that $HOME shows as /root but whoami doesn't return "root". > Also, all of the lrp.conf environment variables appear to be visible but not > the ones from network.conf (where $HOSTNAME is defined). Set ran from the > command line as root returns:
Actually, the network.conf definition of $HOSTNAME is irrelevent in this context... Variables from lrp.conf are avaiable because the lrp.conf file is sourced by multicron, which is how it knows if it should do things like pingcheck in the first place. $HOSTNAME is typically set by the shell startup scripts (/etc/profile, ~/.profile, &c). Programs run from cron do not go through the normal login process, which is why they have a limited environment. > Does any of this point to why $HOSTNAME isn't visible from multicron-p? Because cron scripts don't execute the normal /etc/profile shell startup stuff. Instead, cron builds an environment for the program to execute in, which has a very limited environment. The problems with $HOSTNAME (and the other problems with pingcheck) aren't really suprising, but they are bugs, and have been put on the list of things to fix for the next version... 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