On Fri, Jul 11, 2003 at 04:14:39PM +0100, Stroller wrote:
> I would have  expected this bit:
> 
> > rm -f /www/servers/mirrors.phauna.org/archives/latex.tar.gz
> > [snipped rest of wget output]

Yep, that's the bit that gets displayed on the screen when I run the script
directly.  It's also the part that I would like to receive via email.  I'll
refer to it as "the Good Part" from here on.  

> No, I'm no expert on Bash scripting, but all my cron jobs (which are all
> copied from other peoples') look something like this:
>   [EMAIL PROTECTED] stroller $ crontab -l
>   0-59/5 * * * *          /usr/bin/fetchmail  > /dev/null 2>&1
> 
> I think if you change yours to something like:
>    0 9 * * sun /www/servers/mirrors.phauna.org/scripts/update_latex.sh
>         > /dev/null 2>&1
>        (all on one line)
> then you'll no longer see the error messages.

I see how that would get rid of the error messages, but I think it would
also stop the Good Part from getting emailed to me.

> > I can run /www/servers/mirrors.phauna.org/scripts/update_latex.sh as the
> > user with no errors or funny business.
> 
> Yes, but presumably you see something on the screen when you do so..? It is
> this output that cron will mail to you automagically.

Indeed, I see the Good Part when I run the script directly; but I
definitely don't see the nonsense.  

I'm certain that the way it's supposed to work is for me to get an email
with just the Good Part and nothing else.  The question is, do I have
something horribly misconfigured or is there something wrong with the dcron
package?

Owen

--
[EMAIL PROTECTED] mailing list

Reply via email to