Hi all, On further investigation I found that the PATH of the multicron-p@ process was /usr/bin:/bin. By redirecting std error of the mail command I found that it was not finding the mail command.
</> # m ermsg /etc/multicron-p: mail: command not found I then hard coded the mail command as /usr/sbin/mail and the error I got was: </> # m ermsg getservbyname: not found BusyBox v0.60.1 (2001.10.18-21:35+0000) multi-call binary Usage: nc [IP] [port] Error: Unknown response. RSET 0: Aborting due to connection error Killing child processes: 23012 23014 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 >On 12/29/01 at 9:47 PM, Robert Williams <[EMAIL PROTECTED]> wrote: > >> I am using Dachstien 1.0.2 cd and I am having trouble with >> the ping check function. If I run multicron-p from the >> command line the ping check works and since the address is >> bogus (for testing) it sends me an email. > >> Any idea why the mail feature would work from the command >> line but not from cron? > >The general answer to a question of this type (i.e., why does this >command work at the command line, but not when run from cron?) is that >in the environment set during the execution of a script run from cron, >there are only about SIX environment variables set, and much of the >environment found in a command line environment is missing. > >However, in using standard scripts for Dachstein, this should not be a >problem - but it occurs often enough that I thought I should mention >it. >-- >David Douthitt >UNIX Systems Administrator >HP-UX, Unixware, Linux >[EMAIL PROTECTED] > >_______________________________________________ >Leaf-user mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/leaf-user _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user