From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JdqqZ-0003YO-Rl for garchives@archives.gentoo.org; Mon, 24 Mar 2008 17:52:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ADCCBE06F2; Mon, 24 Mar 2008 17:52:34 +0000 (UTC) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.189]) by pigeon.gentoo.org (Postfix) with ESMTP id 7648AE06F2 for ; Mon, 24 Mar 2008 17:52:34 +0000 (UTC) Received: by rn-out-0910.google.com with SMTP id a43so1565190rne.10 for ; Mon, 24 Mar 2008 10:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=zDVIqhL45GSYtqzEAbz8ffYoJ5nHN/pE7ZJn3ibILUI=; b=VpgTMpyE8duigtStyAQp0DziYavv63rhxm9FPaLtFKxhzOtelHQhtxTSKqwSnfq/RNL3BcNpFmnfhPKhjkacYIqkO3J1G33DiU8kkGgJ/YJA/KXe3Y3EWZDSbK1x3bqPqi14v9aXo0Db52PmM13qUTJgYsogSxhj9+pO8tLGYOA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=WeeNugKYLxKhWxDtsLmjt1AH11MGgGAAoLsV+IX88drPdDbZecipuJc9SXAZFe8s2uypbqi6/eXRrAa/TngRPJYww4G4Pk1b6fLhZ3Vv2ewlklajEhkxq/ixEpsGh0VbYac+wVG8NWlvJ68k8g4Wq4bRl9nKGwU1lBxJTXBqPJ4= Received: by 10.114.25.3 with SMTP id 3mr12295395way.22.1206381153608; Mon, 24 Mar 2008 10:52:33 -0700 (PDT) Received: by 10.114.120.17 with HTTP; Mon, 24 Mar 2008 10:52:33 -0700 (PDT) Message-ID: <6b16fb4c0803241052r392f7bc4y930ec1dc74418130@mail.gmail.com> Date: Mon, 24 Mar 2008 23:22:33 +0530 From: "Kaushal Shriyan" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] crontab entry In-Reply-To: <6b16fb4c0803240843n1e47c864m51d037238b0f61cf@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11990_15530833.1206381153599" References: <6b16fb4c0803240204w227edc7ch894f5cd224ace0be@mail.gmail.com> <47E7BAD1.3070307@kutulu.org> <6b16fb4c0803240843n1e47c864m51d037238b0f61cf@mail.gmail.com> X-Archives-Salt: 89103a0a-2a2a-4014-a30a-5cfcb8804ff5 X-Archives-Hash: 8d78385719f8e5e4d2d516035a4594d7 ------=_Part_11990_15530833.1206381153599 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Mar 24, 2008 at 9:13 PM, Kaushal Shriyan wrote: > On Mon, Mar 24, 2008 at 7:59 PM, Mike Edenfield wrote: > > > Kaushal Shriyan wrote: > > > Hi I have the following entry in the crontab > > > > > > MAILTO=systems@webaroo.com > > > 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 " > > echo "To: Michael Edenfield " > > echo "Subject: Portage Update Report" > > echo "" > > > > # do stuff here. > > > > ) | sendmail kutulu@kutulu.org > > > > -- > > 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" kaushal@example.com< /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 ------=_Part_11990_15530833.1206381153599 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Mar 24, 2008 at 9:13 PM, Kaushal Shriyan <kaushalshriyan@gmail.com> wrote:
On Mon, Mar 24, 2008 at 7:59 PM, Mike Edenfield <kutulu@kutulu.org> wrote:
Kaushal Shriyan wrote:
> Hi I have the following entry in the crontab
>
> MAILTO=systems@webaroo.com
> 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@songbird.jungle>"
echo "To: Michael Edenfield <kutulu@kutulu.org>"
echo "Subject: Portage Update Report"
echo ""

# do stuff here.

) | sendmail kutulu@kutulu.org

--


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@example.com < /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

------=_Part_11990_15530833.1206381153599-- -- gentoo-user@lists.gentoo.org mailing list