From: dpham@mercy.com.au (Zoong Pham)
Subject: Re: Mailing Problem
Date: 3 Dec 2001 21:57:18 GMT [thread overview]
Message-ID: <slrna0nsg5.k2.dpham@snowdon.mercy.com.au> (raw)
In-Reply-To: fad3ec54.0112030742.c47d91c@posting.google.com
In article <fad3ec54.0112030742.c47d91c@posting.google.com>, 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
prev parent reply other threads:[~2001-12-03 21:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-03 15:42 Mailing Problem Marc Biggs
2001-12-03 21:57 ` Zoong Pham [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox