Gentoo Archives: gentoo-user

From: Uwe Thiem <uwix@××××.na>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] crontab entry
Date: Mon, 24 Mar 2008 13:44:12
Message-Id: 200803241543.58352.uwix@iway.na
In Reply to: Re: [gentoo-user] crontab entry by Kaushal Shriyan
1 On Monday 24 March 2008, Kaushal Shriyan wrote:
2 > On Mon, Mar 24, 2008 at 4:36 PM, Peter Humphrey
3 > <peter@××××××××××××××.org>
4 >
5 > wrote:
6 > > On Monday 24 March 2008 10:19:25 Collin Starkweather wrote:
7 > > > ... you left a '>' out of your rsync call. It's fixed below.
8 > >
9 > > His version is exactly the same as yours, apart from layout. I
10 > > suggest that
11 > > the '>' at the beginning of a line has confused your mail reader.
12 > >
13 > > --
14 > > Rgds
15 > > Peter
16 > > --
17 > > gentoo-user@l.g.o mailing list
18 >
19 > Hi Collin
20 >
21 > I have two scripts file
22 > one is http://pastebin.com/m263e6f3c and
23 > http://pastebin.com/m175098db.
24 >
25 > The requirement is run http://pastebin.com/m175098db script once
26 > the below line succeeds in the http://pastebin.com/m263e6f3c
27 >
28 > if /usr/bin/rsync -av /var/lib/mysql host77:/var/lib/ >
29 > /tmp/rsync-${TIMESTAMP}.log 2>&1
30 > then
31 > /usr/bin/mailx -s "Success: host77 DB refresh daily"
32 > kaushal@×××××××.com < /tmp/rsync-${TIMESTAMP}.log
33 >
34 > I am not able to proceed
35
36 Make that last line:
37 cat /tmp/rsync-${TIMESTAMP}.log | mailx -s "blablabla"...
38
39 Uwe
40
41
42 --
43 Informal Linux Group Namibia:
44 http://www.linux.org.na/
45 SysEx (Pty) Ltd.:
46 http://www.SysEx.com.na/
47 --
48 gentoo-user@l.g.o mailing list