Robert, thanks for the help. "/bin/hostname" reports the correct value when run from the command line. The parameter is correctly configured automatically by network.conf. The hostname file also exists in /etc.
If I run "mail -s $HOSTNAME [EMAIL PROTECTED] </var/log/syslog" from the command line I get an email with the correct hostname in the subject field. However multicron-p still emails me a blank src?? This is with Dachstein CD v1.01 booting from a floppy and then CD. A pretty plain Jane config, nothing fancy. Everything is being run as root (except dnscache) so nothing funky with users. OK, my workaround is to change the line to:"src : $(hostname)". That seems to work now. No idea why default $HOSTNAME doesn't? Paul > 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 _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
