Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Mailing Problem
@ 2001-12-03 15:42 Marc Biggs
  2001-12-03 21:57 ` Zoong Pham
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Biggs @ 2001-12-03 15:42 UTC (permalink / raw)


Dear all,
Having a bit of a problem mailing a log file to my machine from our
Unix box. They are on seperate LANS.
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?
Can there be anyway that running it from cron might affect it?
Are there any mail configuration parameters i should look at?
Is there any security issues i might need to look at?
Has anyone had a similar problem?

Thanks for any help

Regards
Marc


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Mailing Problem
  2001-12-03 15:42 Mailing Problem Marc Biggs
@ 2001-12-03 21:57 ` Zoong Pham
  0 siblings, 0 replies; 2+ messages in thread
From: Zoong Pham @ 2001-12-03 21:57 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-12-03 21:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-03 15:42 Mailing Problem Marc Biggs
2001-12-03 21:57 ` Zoong Pham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox