From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,58d88443a6e1db70 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-12-03 13:57:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!news.mel.connect.com.au!dpham From: dpham@mercy.com.au (Zoong Pham) Newsgroups: comp.unix.tru64 Subject: Re: Mailing Problem Date: 3 Dec 2001 21:57:18 GMT Organization: Customer of Connect.com.au Pty. Ltd. Message-ID: References: Reply-To: dpham@mercy.com.au NNTP-Posting-Host: 210.9.192.246 X-Trace: perki.connect.com.au 1007416638 8947 210.9.192.246 (3 Dec 2001 21:57:18 GMT) X-Complaints-To: abuse@connect.com.au NNTP-Posting-Date: 3 Dec 2001 21:57:18 GMT User-Agent: slrn/0.9.7.0 (SunOS) Xref: archiver1.google.com comp.unix.tru64:6053 In article , Marc Biggs wrote: > Dear all, > Having a bit of a problem mailing a log file to my machine from our > Unix box. They are on seperate LANS. Are they all running Tru64 ? > I have a script that creates a log file and at the end of the script > it attempts to email me the log: > > MAIL_LIST=biggsmc@logica.com > LOG_FILE=/usr/logs/mylog.file > > cat $LOG_FILE | mailx -s "Log File" $MAIL_LIST > > This used to work but about a month ago just stopped. I have checked > the script and it seems fine. Furthermore when you type in the command > on the command line it works fine. The script runs as a root cronjob. > I have "su" to root and again attempted it from the command line and > again it works fine > > Has anyone got any ideas? What shell does the script use ? Have you try to define $PATH where mailx is or use fullpath of mailx ? In the script, try with /usr/lib/sendmail -v and redirect to output+error to an other log see if any error during mailing. Look at sendmail(8) for different level of debugging. -- Zoong Pham UNIX Systems Administrator E-mail: dpham@mercy.com.au