Hi Paul, This is working on my end but here are a couple of things to check. The $HOSTNAME variable is exported from /etc/profile so it should be accessible to the shell running multicron-p.
export HOSTNAME="$(hostname)" Check to see what the output of the command hostname is. If it is empty then make sure that you have a file /etc/hostname. If it doesn't exist then you can create it manually or have network.conf create it by setting CONFIG_HOSTNAME=YES under General Settings in network.conf. Hope This helps, Robert Williams >Great find Robert. Now that my pingcheck is working with your fix I notice >that the script does not fill in the src field. Here's what I get in the >"alert: Ping Failure!" email: > >host: shaw.ca >date: Thu Jan 3 14:50:51 MST 2002 >src : > >"src : $HOSTNAME" is the culprit /etc/multicron-d, line 132). It appears >that $HOSTNAME, defined in network.conf is not visible to the multicron-d >script. I'm sure it's something to do with the last few lines (see below). >Not being up on unix scripting, I've no idea how to "include" another >scripts definitions. > >Any ideas? > >Cheers. > >Paul >Calgary, Alberta, Canada > >> The solution to this bug was to add PATH=$PATH:/usr/sbin to the >> multicron-p file. The end of the file should now look like: >> >> [ ! -f /etc/lrp.conf ] && exit 1 >> . /etc/lrp.conf >> PATH=$PATH:/usr/sbin >> main >> >> The mailadmin() fx now works properly. If there is a more elegant >> solution please let me know. >> Thanks, >> Robert Williams _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user