On Tue, Mar 25, 2008 at 12:11 PM, Kaushal Shriyan <[EMAIL PROTECTED]> wrote:
> On Mon, Mar 24, 2008 at 11:22 PM, Kaushal Shriyan < > [EMAIL PROTECTED]> wrote: > > > 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] > > > > > > > > -- > > > > gentoo-user@lists.gentoo.org 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 > > > > > > 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 [EMAIL PROTECTED]:/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