On Mon, Mar 24, 2008 at 9:13 PM, Kaushal Shriyan <[EMAIL PROTECTED]>
wrote:

> On Mon, Mar 24, 2008 at 7:59 PM, Mike Edenfield <[EMAIL PROTECTED]> wrote:
>
> > Kaushal Shriyan wrote:
> > > Hi I have the following entry in the crontab
> > >
> > > [EMAIL PROTECTED]
> > > 0 18 * * * /home/kaushal/rsync_mysql.sh
> > >
> > > I want my subject line to be "hostxx:yyDB refresh daily"
> > >
> > > is there a way to do it
> > >
> > > Thanks and Regards
> > >
> > > Kaushal
> > >
> >
> > The easiest way is to write a wrapper script; I have a few of them that
> > do something like:
> >
> >
> > (
> > echo "From: songbird.jungle <[EMAIL PROTECTED]>"
> > echo "To: Michael Edenfield <[EMAIL PROTECTED]>"
> > echo "Subject: Portage Update Report"
> > echo ""
> >
> > # do stuff here.
> >
> > ) | sendmail [EMAIL PROTECTED]
> >
> > --
> > [email protected] mailing list
> >
> >
>
> Hi,
>
> I have two scripts file one is http://pastebin.com/m263e6f3c and
> http://pastebin.com/m175098db.
>
> The requirement is run http://pastebin.com/m175098db script once the below
> line succeeds in the http://pastebin.com/m263e6f3c
>
> if /usr/bin/rsync -av /var/lib/mysql host77:/var/lib/ >
> /tmp/rsync-${TIMESTAMP}.log 2>&1
> then
>   /usr/bin/mailx -s "Success: host77 DB refresh daily" [EMAIL PROTECTED]< 
> /tmp/rsync-${TIMESTAMP}.log
>
> I am not able to proceed
>
> Thanks and Regards
>
> Kaushal
>

Hi

I have combined the script http://pastebin.com/m77e0e752, is it ok

Thanks and Regards

Kaushal

Reply via email to