Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Oct 2006 08:36:29 +0800
From:      "jan gestre" <freebsd.ph@gmail.com>
To:        "Ivan Levchenko" <levchenko.i@gmail.com>,  "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: scripting question
Message-ID:  <a25afc300610031736s30614762p4777437ff82e92ad@mail.gmail.com>
In-Reply-To: <e39dd5bb0610030022y1658b517n4c9c8e56db92b2cd@mail.gmail.com>
References:  <a25afc300610021749h500dc4acv4c9b958859cda7cc@mail.gmail.com> <e39dd5bb0610030022y1658b517n4c9c8e56db92b2cd@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 10/3/06, Ivan Levchenko <levchenko.i@gmail.com> wrote:
>
> Remove the word root from the crontab entry. The user should be
> specified only in the system crontab.


thanks ivan,  but the solution i made was i put in the
/usr/local/etc/periodic/daily directory, it is now working :D


On 10/3/06, jan gestre <freebsd.ph@gmail.com> wrote:
> > i made a script and put on root's crontab, however it's not doing or
> showing
> > the output that is forwarded to my email address correctly therefore i'm
> not
> > sure if it is working or not. below is what the script look like:
> >
> > #----------------
> > # cvsrun - Weekly CVSup Run
> >
> > echo "Subject: `hostname` weekly cvsup run"
> > /usr/local/bin/cvsup -g -L 2 /root/ports-supfile
> > echo ""
> > /usr/local/bin/portmanager -s | grep OLD
> > echo ""
> > echo "cvsrun done."
> >
> > #----------------
> >
> > i would like the output of this command
> >
> > /usr/local/bin/portmanager -s | grep OLD
> >
> > to show in my mail where i forwarded it. below is the cronjob.
> >
> > 30 8 * * * root /usr/local/bin/cvsrun | mail -s "Daily cvsup run and
> > portmanager" user1
> >
> > can someone help me to correct this script, to show the output that i
> want.
> >
> > TIA
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
> >
>
>
> --
> Best Regards,
>
> Ivan Levchenko
> levchenko.i@gmail.com
>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?a25afc300610031736s30614762p4777437ff82e92ad>