> You can try to figure it out or just code the > thing to work, like this: > > LEAFHOSTNAME=`cat /etc/hostname`
I've gone back to just using $(hostname) vs $HOSTNAME. Works OK, just have to replace the few occurences in multicron-p. > and just use that. If you want to figure > it out, write a few test scripts for cron > to run that determine as much info as possible, > using things like > > set >/tmp/evars 2>&1 > whoami > etc... I found that whoami returns a null string when run from the multicron-p process. $(set) returns the following from the multicron-p process (note PATH was modded from default by the suggestions from the list): lrp_SC_MINKB=-1 lrp_SC_MAIL_LEVEL=2 lrp_DATE_SERVER=time.nrc.ca HOME=/root lrp_LOGS_DAILY=daemon.log debug kern.log messages syslog user.log ppp.log pslave.log prog=multicron-p lrp_LOGS_DEPTH=4 SP= OIFS= PS1=# OPTIND=1 lrp_MAIL_SERVER=shawmail.cg.shawcable.net PS2=> lrp_SC_MINPER=2 LOGNAME=root [EMAIL PROTECTED] PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin lrp_LOGS_WEEKLY=auth.log lastlog lrp_SPACECHECK=NO lrp_SC_DEL_L1=/var/log/*[4-9].gz SHELL=/bin/sh lrp_SC_DEL_L2=/var/log/*[1-3].gz lrp_SC_DEL_L3=/var/log/*.gz IFS= lrp_SC_DEL_L4=/var/log/*.0 lrp_PING_HOSTS=google.com shawcable.tucows.com lrp_SC_DEL_L5=/var/log/wtmp PWD=/root lrp_LOGS_MONTHLY=wtmp TAB= 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: SSH_CLIENT=192.168.1.7 1125 22 USER=root MAIL=/var/spool/mail/root HOSTNAME=ronin-firewall LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib HOME=/root SSH_TTY=/dev/ttyp0 PS1= ronin-firewall: -root- # OPTIND=1 PS2=> LOGNAME=root _=date TERM=xterm PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin SHELL=/bin/sh IFS= PWD=/root Does any of this point to why $HOSTNAME isn't visible from multicron-p? Thanks, Paul _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user