Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wierd cron behaviour - not all get mail output

0 views
Skip to first unread message

Kevin Bailey

unread,
May 23, 2009, 3:39:30 AM5/23/09
to
Hi,

This is puzzling me.

crontab is

tailorone:~# crontab -l
#+------------- min (0 - 59)
#| +----------- hour (0 - 23)
#| | +--------- day of month (1 - 31)
#| | | +------- month (1 - 12)
#| | | | +----- day of week (0 - 6) (Sunday=0)
#| | | | |
#* * * * * command to be executed
MAILTO=tailoroneadmin

# Comment here will apparently help cron run all three jobs.
0 2 * * * /usr/local/sbin/synchronise_ns.sh
0 3 * * * /usr/local/sbin/
create_backups_for_users
0 4 * * * /usr/local/sbin/backup_data.sh


(obviously the 0300 job has wordwrapped)

Now, all jobs run - but I only get output via email for the 0300 job -
all scripts contain echo commands and produce output - and I'm fairly
sure neither the 0200 or 0400 jobs produce too much output.

So - why does the output of the 0300 job get emailed - but not for the
0200 or 0400 jobs?

Any help gratefully received.

bailey86

Message has been deleted

bailey86

unread,
May 31, 2009, 3:30:08 AM5/31/09
to
On May 30, 3:00 pm, Robert James <robertjame...@gmail.com> wrote:
> Wile your problem is a bit behond my skills I am just amazed that ANYONE
> made a new post to this group since 2007....
>
> On 23/05/2009 08:39, in article SKNRl.35844$TE3.6...@newsfe13.ams2, "Kevin

>
>
>
> Bailey" <kbai...@freewayprojects.com> wrote:
> > Hi,
>
> > This is puzzling me.
>
> > crontab is
>
> > tailorone:~# crontab -l
> > #+------------- min (0 - 59)
> > #|       +----------- hour (0 - 23)
> > #|       |       +--------- day of month (1 - 31)
> > #|       |       |       +------- month (1 - 12)
> > #|       |       |       |       +----- day of week (0 - 6) (Sunday=0)
> > #|       |       |       |       |
> > #*       *       *       *       *       command to be executed
> > MAILTO=tailoroneadmin
>
> > # Comment here will apparently helpcronrun all three jobs.

> > 0       2       *       *       *       /usr/local/sbin/synchronise_ns.sh
> > 0       3       *       *       *       /usr/local/sbin/
> > create_backups_for_users
> > 0       4       *       *       *       /usr/local/sbin/backup_data.sh
>
> > (obviously the 0300 job has wordwrapped)
>
> > Now, all jobs run - but I only get output via email for the 0300 job -
> > all scripts contain echo commands and produce output - and I'm fairly
> > sure neither the 0200 or 0400 jobs produce too much output.
>
> > So - why does the output of the 0300 job get emailed - but not for the
> > 0200 or 0400 jobs?
>
> > Any help gratefully received.
>
> >bailey86
>
> --
> This message may contain confidential information and is intended only
> for the individual named. If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail. Please notify
> the sender immediately by e-mail if you have received this e-mail by
> mistake and delete this e-mail from your system.

You make a good point!

What's happened to usenet - I used to use it all the time - but it
looks like things have changed.

Is there any active Unix group around?

Kev

0 new messages