2 msgQmail and Domainkeys
19 msgLinux & Motherboard
39 msgRecovering root password
4 msgiwl4965 performance
7 msg1/2 OT: What Linux could learn from mainframes ?
6 msgdefect management block device
2 msgBug in server_test.c
5 msgError emerging gtk+ Pango not found (expat issu...

crontab entry
\ Kaushal Shriyan (24 Mar 2008)
. \ Dirk Heinrichs (24 Mar 2008)
. . \ Kaushal Shriyan (24 Mar 2008)
. . . \ Dirk Heinrichs (24 Mar 2008)
. . . . \ Kaushal Shriyan (24 Mar 2008)
. . . . . \ Dirk Heinrichs (24 Mar 2008)
. . . \ Collin Starkweather (24 Mar 2008)
. . . . \ Peter Humphrey (24 Mar 2008)
. . . . . \ Kaushal Shriyan (24 Mar 2008)
. . . . . . \ Uwe Thiem (24 Mar 2008)
. \ Mike Edenfield (24 Mar 2008)
. . \ Kaushal Shriyan (24 Mar 2008)
. . . \ Kaushal Shriyan (24 Mar 2008)
. \ Kaushal Shriyan (25 Mar 2008)

6 msgAutomatic email deletion
4 msgBasic video editor in portage?
4 msglibgnutls.so.13 missing [SOLVED]
11 msgHELP! partition table is corrupted
6 msgGentoo router: Conntrack table full
4 msgSlim DM and shutdown
1 msgnVidia GeForce4 MX 440 AGP 8x - tainted driver ...
9 msgunixODBC econf failure
19 msgAMD vs. Intel on Gentoo?
2 msgsome OSS software that enable me make call to t...
3 msgRoot shell terminates after first keystroke
Subject:Re: crontab entry
Group:Gentoo-user
From:Kaushal Shriyan
Date:25 Mar 2008


 

On Tue, Mar 25, 2008 at 12:11 PM, Kaushal Shriyan <kaushalshriyan>
wrote:

> On Mon, Mar 24, 2008 at 11:22 PM, Kaushal Shriyan <
> kaushalshriyan> wrote:
>
> > On Mon, Mar 24, 2008 at 9:13 PM, Kaushal Shriyan <
> > kaushalshriyan> wrote:
> >
> > > On Mon, Mar 24, 2008 at 7:59 PM, Mike Edenfield <kutulu>
> > > wrote:
> > >
> > > > Kaushal Shriyan wrote:
> > > > > Hi I have the following entry in the crontab
> > > > >
> > > > > MAILTO=systems
> > > > > 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 <root>"
> > > > echo "To: Michael Edenfield <kutulu>"
> > > > echo "Subject: Portage Update Report"
> > > > echo ""
> > > >
> > > > # do stuff here.
> > > >
> > > > ) | sendmail kutulu
> > > >
> > > > --
> > > > gentoo-user 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"
> > > kaushal < /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
> >
> >
>
> Hi Collin,
>
> I have http://pastebin.com/d65195b48, I want to know how much time it
> takes to execute the script,
>
> I know the time command
>
> { time sudo /usr/bin/rsync -av /var/lib/mysql kaushal@host77:/var/lib/; }
> 2>/tmp/time.output
>
> is there a way to call the time command inside the
> http://pastebin.com/d65195b48 script
>
> Thanks and Regards
>
> Kaushal
>


Hi Collin

I could incorporate the time command in my script
http://pastebin.com/d1324bbd8

http://pastebin.com/d1324bbd8 is the modified script. Just wanted to know
the elasped time in minutes instead of seconds

Thanks and Regards

Kaushal



© 2004-2008 readlist.com